docs/sources/administration/grafana-advisor/advisor-create-alert/_index.md
{{< admonition type="note" >}} Grafana Advisor performs regular checks on data sources, plugins, and your Grafana instance, but will expand its capabilities in future releases to cover more aspects of your Grafana environment. You can suggest new checks and provide feedback through this form. {{< /admonition >}}
This guide walks you through creating a Grafana alert that monitors Advisor check results and triggers when failures are detected.
Follow these steps:
{{< admonition type="caution" >}} Copy the token value immediately and store it securely - you won't be able to see it again. {{< /admonition >}}
{{< admonition type="note" >}} Use Infinity plugin v3.3.0 or higher for the JQ parser used later. {{< /admonition >}}
https://your-grafana-host.com).Now you have everything you need to create an alert based on Advisor results.
/checkshttps://<your_grafana_host>/apis/advisor.grafana.app/v0alpha1/namespaces/<your_namespace>/checks)Rows/Root (paste this JQ expression):
.items | map({
type: .metadata.labels["advisor.grafana.app/type"],
creationTimestamp: .metadata.creationTimestamp,
failuresCount: (.status.report.failures | length)
}) | group_by(.type) | map(sort_by(.creationTimestamp) | last)
This JQ query processes Grafana Advisor check data to get the most recent result for each check type. It transforms each check into a simplified object with type, timestamp, and failure count. The result is a clean array showing the current state of each check type (data source, plugin, configuration, etc.) with their failure counts, perfect for alerting when any type has failures > 0.
Columns (add these three columns):
creationTimestamp, Format: TimefailuresCount, Format: Numbertype, Format: StringIf you want to alert only for specific check types:
type == "license" (replace "license" with your desired check type)Select your preferred evaluation (for example, every 24 hours) and notification settings.
Click Save and check the alert is being triggered.
Your alert is now configured to monitor Advisor results and notify you when failures are detected!