From f432b8176d0e69027ab46ad7ac434764da743a11 Mon Sep 17 00:00:00 2001 From: Tobias Schmidt Date: Fri, 27 Oct 2017 09:47:38 +0200 Subject: [PATCH] Consolidate configuration and rules docs in docs/configuration/ --- docs/configuration/alerting_rules.md | 98 +++++++++++++++++++ docs/{ => configuration}/configuration.md | 4 +- docs/configuration/index.md | 4 + .../recording_rules.md} | 9 +- docs/getting_started.md | 2 +- docs/index.md | 2 +- docs/querying/basics.md | 2 +- docs/storage.md | 2 +- 8 files changed, 112 insertions(+), 11 deletions(-) create mode 100644 docs/configuration/alerting_rules.md rename docs/{ => configuration}/configuration.md (99%) create mode 100644 docs/configuration/index.md rename docs/{querying/rules.md => configuration/recording_rules.md} (89%) diff --git a/docs/configuration/alerting_rules.md b/docs/configuration/alerting_rules.md new file mode 100644 index 000000000..905b26203 --- /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