Pages

Monday, 3 August 2026

Grafana Alerting

 


How it works

  • Grafana alerting periodically queries data sources and evaluates the condition defined in the alert rule
  • If the condition is breached, an alert instance fires
  • Firing instances are routed to notification policies based on matching labels
  • Notifications are sent out to the contact points specified in the notification policy

How to set alerts

  • Alert rules: Create an alert rule to query a data source and evaluate the condition defined in the alert rule. 
    • There are two types of alerts rules:
      • Grafana-managed. Examples:
        • APM
        • AWS
        • Data Quality
        • Kubernetes
        • MongoDB
        • Storage
        • Synthetics
      • Data source-managed. Data sources containing configured alerts rules are for example Mimir or Loki data sources where alert rules are stored and evaluated in the data sources itself. In these data sources you can select Manage alerts via Alerting UI to be able to manage these alerts rules in the Grafana UI as well as in the data source where they were configured.
        • Prometheus
        • Mimir
        • Loki
    • Define the condition that must be met before an alert rule fires
  • Route alert notifications either directly to a contact point or through notification policies for more flexibility
    • Contact points: Configure who receives notifications and how they are sent
    • Notification policies: Configure how firing alert instances are routed to contact points
  • Monitor your alert rules using dashboards and visualizations





No comments:

Post a Comment