• Log inStart now

NerdGraph tutorial: Manage your synthetic monitors

Our NerdGraph API allows you to automate creating, updating, or deleting your synthetic monitors.

Requirements

Requirements include:

Understand fields in NerdGraph explorer

You can view field definitions in NerdGraph explorer, but it may help to better understand the LOCATION, PERIOD, TAGS, and other fields.

Use queries to retrieve data

Queries make requests to fetch data. To learn additional query capabilities available to your synthetic entities, check out NerdGraph entities API tutorial.

Create your synthetic monitors

Below are some sample requests to automate the creation of your synthetic monitors.

Tip

Include the runtime object that includes runtimeType, runtimeTypeVersion, and scriptLanguage to use a newer runtime. Do not include the runtime object and these attributes to continue using a legacy runtime.

Update your synthetic monitors

While you can't change the monitor type after creating it, you can update its settings. Only the guid and the settings that need updated are required as part of the request.

Tip

Include the runtime object that includes runtimeType, runtimeTypeVersion, and scriptLanguage to upgrade a monitor to use a newer runtime. Do not include this object and these attributes to continue using a legacy runtime.

Delete a synthetic monitor

Use these scripts to delete your monitors:

Manage your private locations

A private location allows you to monitor applications behind your firewall. When you create a private location, you install and configure private minions to execute the monitors assigned to that private location.

Manage your secure credentials

You use secure credentials when storing, protecting, and centrally managing protected information used by your monitors, like passwords, API keys, or encoded certificates. Using NerdGraph allows you to programmatically change the values of your secure credentials if you need to reset any credentials for any reason.

Copyright © 2022 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.