Section 6 · Create an alert with code

Documentation covering alert rules, queries and conditions, evaluation, labels, and contact points.

Estimated time: 1 min

Resources

These documentation pages cover the concepts you practiced. Use them as a reference when creating your next alert rule.

Alert rules

The full anatomy of an alert rule, including all configuration options.

Alert rules documentation

Queries and conditions

How alert rule queries work, expression types, and how the condition is evaluated.

Queries and conditions documentation

Alert rule evaluation

Lifecycle states, evaluation groups, pending period, and keep-firing-for.

Alert rule evaluation documentation

No-data and error handling

How Grafana handles missing data and query failures, and considerations for each option.

No-data and error handling documentation

Labels and annotations

How labels route notifications and how annotations provide responder context.

Labels and annotations documentation

Contact points

How contact points deliver notifications to integrations like email, Slack, and PagerDuty.

Contact points documentation

Grot, the Grafana mascot, planting a Grafana flag on a snowy mountain summit

You made it to the end. Nice work.

Sorry this didn't help you. Which of the following was the biggest problem for you?
Thanks. What would have made this journey more helpful?
Love to hear it! What did you find most valuable?
Thanks. Your feedback helps us improve this journey for everyone.