Fix the alerting rules name description (#7083) (#8197)

commit 9875afc491 changed the type from
metric names to label values, we might as well adjust the description.
The alternative is to revert that commit and restrict names of alerting
rules again even if that was not really enforced.

Signed-off-by: Peter Wu <pwu@cloudflare.com>
This commit is contained in:
Peter Wu 2020-11-18 20:29:01 +01:00 committed by GitHub
parent 3093755174
commit 1797192f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -45,8 +45,10 @@ dashboards, which need to query the same expression repeatedly every time they
refresh.
Recording and alerting rules exist in a rule group. Rules within a group are
run sequentially at a regular interval. The names of recording and alerting rules
run sequentially at a regular interval. The names of recording rules
must be [valid metric names](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
The names of alerting rules must be
[valid label values](https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).
The syntax of a rule file is: