ALERTS that you can query with PromQL
as normal. The series contain metadata such as alertname, alertstate, and severity.
The value for these is only ever 1, which occurs when triggering the alert, or
the alert is in a pending state. When the alert is in a passing state, the series
isn’t emitted.
For example, the following monitor definition emits a corresponding series with the
value of 1 when triggering the alert:
Definition
Metric
ALERTS metric are a combination of the labels
from the alerting time series and the labels defined in the labels section of
the monitor specification.
Annotations, if defined, aren’t included as part of the labels, and labels in the
labels configuration override any labels on the metric itself. For example, if
there’s a job label on the alerting time series and a job label defined in the
alert definition, the alert definition label takes priority.