You can also create monitors with our synthetic monitoring REST API. For REST APIs, make a GET request to retrieve the configuration details of your chosen synthetic monitor. Once you've retrieved that data, use POST to create a "copy" of your chosen monitor.
When configuring monitors, the following settings are available:
Select the type of monitor you want to create. A monitor's type can't be changed after the monitor is created.
Ping: Specify a single URL to monitor for availability. New Relic will check this URL via HEAD or GET requests. The non-configurable timeout for this monitor is 60 seconds.
Simple browser: Specify a single URL to monitor via real browser. Once each frequency interval, New Relic will check this URL via a Selenium-powered Google Chrome browser. The non-configurable timeout for this monitor is 60 seconds.
Scripted browser: Create a script to drive a Selenium-powered Google Chrome browser. The browser follows each step in the script to verify that complex behavior is working as expected (for example, searching a website, then clicking one of the search results). The non-configurable timeout for this monitor is 180 seconds.
API test: Create an API script to ensure your API endpoint is working correctly. For more information, see Write API tests. The non-configurable timeout for this monitor is 180 seconds.
Defines a name for the monitor. Monitor names cannot contain unencoded angle brackets (< and >). To include angle brackets in a monitor name, encode them as HTML bracket entities (< for < and > for >) in the UI or API.
Select the locations where you want your monitor to run. Select more locations to ensure that your application is available to users around the world. If you have any private locations, they will be listed here too. You can use the Synthetics API location endpoint to retrieve a list of valid locations for your account.
Your monitor will run one check from each selected location during each frequency interval. For example, if you select three locations and define a frequency of 15 minutes, your monitor will run three checks in each 15 minute period (or 8,640 checks per month).
Select how often the monitor runs, in increments of minutes, hours, or 1 day. This frequency applies to each location. For example, if you select three locations and a Frequency of 15 minutes, your monitor will run three checks, on average every 5 minutes, in each 15 minute period (or 8,640 checks per month).
Specify an email address to receive alerts when a monitor fails. Or, attach a monitor to an existing alert policy for more notification options. For more information, see Alerting for synthetic monitoring.
Specify text to search for on the page DOM. When using simple browser or ping monitor types, there is a 1MB (10^6 bytes) limit on the page load.
Specify the threshold for the tolerable response times for your monitor. The default value is 7 seconds (7000ms). For more information, see Understand SLA report metrics.