Back to Grafana

Grafana managed alerts

docs/sources/shared/alerts/grafana-managed-alerts.md

13.0.13.2 KB
Original Source

Clustering

The current alerting system doesn't support high availability. Alert notifications are not deduplicated and load balancing is not supported between instances; for example, silences from one instance will not appear in the other.

Alert evaluation

Grafana managed alerts are evaluated by the Grafana backend. Rule evaluations are scheduled, according to the alert rule configuration, and queries are evaluated by an engine that is part of core Grafana.

Alerting rules can only query backend data sources with alerting enabled:

  • builtin or developed and maintained by grafana: Graphite, Prometheus, Loki, InfluxDB, Elasticsearch, Google Cloud Monitoring, Cloudwatch, Azure Monitor, MySQL, PostgreSQL, MSSQL, OpenTSDB, Oracle, and Azure Data Explorer
  • any community backend data sources with alerting enabled (backend and alerting properties are set in the plugin.json

Metrics from the alerting engine

The alerting engine publishes some internal metrics about itself. You can read more about how Grafana publishes internal metrics. See also, View alert rules and their current state.

Metric NameTypeDescription
alerting.alertsgaugeHow many alerts by state
alerting.request_duration_secondshistogramHistogram of requests to the Alerting API
alerting.active_configurationsgaugeThe number of active, non default alertmanager configurations for grafana managed alerts
alerting.rule_evaluations_totalcounterThe total number of rule evaluations
alerting.rule_evaluation_failures_totalcounterThe total number of rule evaluation failures
alerting.rule_evaluation_duration_secondshistogramThe time to evaluate a rule
alerting.rule_process_evaluation_duration_secondshistogramThe time to process the evaluation results for a rule
alerting.rule_send_alerts_duration_secondshistogramThe time to send the alerts to Alertmanager
alerting.rule_group_rulesgaugeThe number of rules
alerting.state_calculation_duration_secondshistogramThe duration of calculation of a single state