mirror of
https://github.com/prometheus/prometheus.git
synced 2026-07-08 00:31:14 -04:00
When a rule group is removed or renamed on reload, Manager.Update deletes the rule_group-labeled series for most group metrics but missed GroupLastRuleDurationSum and GroupLastRestoreDuration, which carry the same rule_group label. Their series leaked on every reload that dropped a group, growing memory and /metrics cardinality over time. Delete both alongside the existing cleanup, and extend TestMetricsUpdate to cover rule_group_last_rule_duration_sum_seconds so the leak is caught. Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@gmail.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| alerting.go | ||
| alerting_test.go | ||
| group.go | ||
| group_test.go | ||
| manager.go | ||
| manager_test.go | ||
| origin.go | ||
| origin_test.go | ||
| recording.go | ||
| recording_test.go | ||
| rule.go | ||