diff --git a/docs/configuration/alerting_rules.md b/docs/configuration/alerting_rules.md new file mode 100644 index 00000000000..905b2620314 --- /dev/null +++ b/docs/configuration/alerting_rules.md @@ -0,0 +1,98 @@ +--- +title: Alerting rules +sort_rank: 3 +--- + +# Alerting rules + +Alerting rules allow you to define alert conditions based on Prometheus +expression language expressions and to send notifications about firing alerts +to an external service. Whenever the alert expression results in one or more +vector elements at a given point in time, the alert counts as active for these +elements' label sets. + +Alerting rules are configured in Prometheus in the same way as [recording +rules](recording_rules.md). + +### Defining alerting rules + +Alerting rules are defined in the following syntax: + + ALERT + IF + [ FOR ] + [ LABELS