mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
149f02aebe
* Alerting: Add rule_group label to grafana_alerting_rule_group_rules metric (#62361) * Alerting: Delete rule group metrics when the rule group is deleted This commit addresses the issue where the GroupRules metric (a GaugeVec) keeps its value and is not deleted when an alert rule is removed from the rule registry. Previously, when an alert rule with orgID=1 was active, the metric was: grafana_alerting_rule_group_rules{org="1",state="active"} 1 However, after deleting this rule, subsequent calls to updateRulesMetrics did not update the gauge value, causing the metric to incorrectly remain at 1. The fix ensures that when updateRulesMetrics is called it also deletes the group rule metrics with the corresponding label values if needed. |
||
---|---|---|
.. | ||
alertmanager.go | ||
api.go | ||
historian.go | ||
multi_org_alertmanager.go | ||
ngalert.go | ||
remote_alertmanager.go | ||
remote_writer.go | ||
scheduler.go | ||
state.go | ||
util.go |