prometheus/prometheus

Help/Description entry for recording rules

Ouverte

#11 969 ouverte le 13 févr. 2023

 (4 commentaires) (0 réaction) (0 personne assignée)Go (10 408 forks)batch import
component/ruleshelp wanted

Métriques du dépôt

Stars
 (64 042 étoiles)
Métriques de merge PR
 (Merge moyen 11j 5h) (118 PRs mergées en 30 j)

Description

Proposal

Today we have

  • HELP entry for metrics
  • Description and Summary for Alerting rules

But nothing for Recording rules, I think it will be beneficial to have/support a description entry for it

Example:

groups:
  - name: rules
    rules:
      - record: xxx:yyyy_yyy:zzzz
        expr: <PromQL expression>
        description: "foo bar"

This will help understanding the rule, generating automatic documentations etc

Guide contributeur