New Relic Health Check
With New Relic, you can reference any previous or current incident, alert violation, or application ID relevant to your service. See Application and reporting health status in the New Relic documentation for more information.
|Example incident, alert, or application||Input value||Evaluation|
|List of all open incidents||https://api.newrelic.com/v2/alerts_incidents.json||Gremlin looks at the response body and verifies the length, meaning that no incidents are created|
|Any available alert violations that are triggered||https://api.newrelic.com/v2/alerts_violations.json||Gremlin looks at the response body and verifies the length, meaning that no alert violations are present.|
|Summary data for a specific application||https://api.newrelic.com/v2/applications/$APP_ID.json||Gremlin looks at the response body and verifies the value for "health status" field. This has to be |
To add a New Relic Health Check:
Open the Health Checks page in the Gremlin web app, click + Health Check, then select New Relic from the Integrations drop-down.
If New Relic is already authenticated, go to step 3. Otherwise, continue with these steps:
- In the New Relic web app, copy or create an API key.
- In the Gremlin web app, paste your New Relic API key into the API Key text box.
- Click Authenticate Observability Tool. To validate the endpoint with the added header, Gremlin calls the following API:
- If the authentication passes, click Save Authentication, then click Next.
In the New Relic web app, get the URL of the incident, alert violation, or application ID that you want to use.
Back in the Gremlin web app, paste the URL into the New Relic API URL.
Click Test Health Check. Gremlin will send a test request to New Relic and analyze the response.
Click Create Health Check.