Creating a Grafana alert rule lets Grafana notify operators when a metric crosses a threshold instead of waiting for someone to watch a dashboard. A Grafana-managed rule combines a query, a condition, and a notification target, then evaluates that condition on a schedule.
Grafana-managed alert rules live under Alerting and can use many data sources, including Prometheus, InfluxDB, and TestData DB. The rule editor previews the condition before saving, so an empty query, wrong reducer, or unsuitable threshold can be corrected before alerts route to responders.
Use an existing alert-compatible data source and contact point before creating a production rule. A lab rule can use TestData DB with Predictable Pulse to show a firing state without depending on a live service or external metrics backend.
Some Grafana Cloud menus show Alerts & IRM before Alerting.


The lab rule shown here uses TestData DB → Predictable Pulse because it returns predictable time-series values.
WHEN Last OF QUERY IS ABOVE 0 shows a firing preview for the Predictable Pulse lab rule.

Rules in the same evaluation group run on the same interval.
None for Pending period lets a lab rule enter firing state immediately; production rules often use a delay to avoid notifications from short spikes.


