prometheus/prometheus

Help/Description entry for recording rules

Open

#11,969 opened on Feb 13, 2023

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Go (10,408 forks)batch import
component/ruleshelp wanted

Repository metrics

Stars
 (64,042 stars)
PR merge metrics
 (Avg merge 11d 5h) (118 merged PRs in 30d)

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

Contributor guide