Menu
Grafana Cloud

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.

  1. Log on to your instance and click the Explore (compass) icon in the menu sidebar.

  2. 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.

  3. 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`
  4. Click Run query.

  5. 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 the name field), the name of the group it’s in (in the group field), and the error message (in the err field).