--- 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