Grafana Cloud Health Check
No items found.
Gremlin can use Grafana alert rules as Health Checks. You'll need to retrieve the Alert Rule URL from the relevant alert's page in the Grafana Cloud web app. See Grafana Alerting in the Grafana Cloud documentation for more information.
To add a Grafana Cloud Health Check:
- Open the Health Checks page in the Gremlin web app, click + Health Check, then select Grafana Cloud from the Integrations drop-down.
- If Grafana Cloud is already authenticated, continue to step 3. Otherwise, follow these steps:
- Enter your Grafana Cloud domain in the API Base URL text box. The full URL should appear similar to:<span class="code-class-custom"> https://example.grafana.net/</span>
- In Grafana Cloud, <a href="https://grafana.com/docs/grafana/latest/administration/service-accounts/" target="_blank">create a Service Account</a>. In the Authentication section of the Gremlin web app, paste your Service account token into the API key text box.
- Click Authenticate Observability Tool. To validate the endpoint with the added header, Gremlin calls the following API: <span class="code-class-custom">https://<your_domain>.grafana.net/api/alertmanager/grafana/api/v2/alerts</span>
- If the authentication passes, click Save Authentication, then click Next.
- In the Grafana Cloud web app, navigate to the Alert page and copy the URL of the rule you want to use.
- Back in the Gremlin web app, enter the URL into the Entity URL text box. For example, <span class="code-class-custom">https://example.grafana.net/alerting/grafana/107Vz/view</span>
- Click Test Health Check. Gremlin will look at the response body and verify that the rule has no alerts in a <span class="code-class-custom">Firing</span> state. A value of <span class="code-class-custom">Normal</span> for the State field will evaluate as successful.
- Click Create Health Check.