Use insights logs
Use insights logs for Mimir-managed alerts to help you determine which Mimir-managed alerting and recording rules are failing to evaluate and why. These logs contain helpful information on specific alert rules that are failing, provide you with the actual error message, and help you evaluate what is going wrong.
Before you begin
To view your insights logs, you must have the following:
- A Grafana Cloud account
- Admin or Editor user permissions for the managed Grafana Cloud instance
Steps
To explore logs pertaining to failing alerting and recording rules, complete the following steps.
Log on to your instance and click the Explore (compass) icon in the menu sidebar.
Use the data sources dropdown located at the top of the page to select the data source. The data source name should be similar to
grafanacloud-<yourstackname>-usage-insights
.To find the logs you want to see, use the Label filters and Line contains options in the query editor.
To look at a particular stack, you can filter by instance_id instead of org_id.
The following is an example query that would surface insights logs:
{org_id="<your-org-id>"} | logfmt | component = `ruler` | msg = `Evaluating rule failed`
Click Run query.
In the Logs section, view specific information on which alert rule is failing and why.
You can see the rule contents (in the
rule
field), the rule name (in thename
field), the name of the group it’s in (in thegroup
field), and the error message (in theerr
field).
Was this page helpful?
Related resources from Grafana Labs
![Getting started with the Grafana LGTM Stack](/static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=200 200w, /static/assets/featured/getting-started-with-grafana-lgtm-stack-amer_featured.png?w=400 400w)
![Intro to Kubernetes monitoring in Grafana Cloud](/media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=200 200w, /media/webinar/Screenshot-2024-02-12-at-4.09.30-PM.png?w=400 400w)
![Building advanced Grafana dashboards](/media/webinar/AMER_buildadv_notxt.png?w=200 200w, /media/webinar/AMER_buildadv_notxt.png?w=400 400w)