prometheus/prometheus

Help/Description entry for recording rules

开放

#11,969 创建于 2023年2月13日

 (4 条评论) (0 个反应) (0 位负责人)Go (10,408 个派生)batch import
component/ruleshelp wanted

仓库指标

星标
 (64,042 个星标)
PR 合并指标
 (平均合并 11天 5小时) (30 天内合并 118 个 PR)

描述

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

贡献者指南