Skip to content

use promauto to register silence state metrics#4865

Merged
SuperQ merged 1 commit into
prometheus:mainfrom
SungJin1212:migrate-silences-to-promauto
Jan 9, 2026
Merged

use promauto to register silence state metrics#4865
SuperQ merged 1 commit into
prometheus:mainfrom
SungJin1212:migrate-silences-to-promauto

Conversation

@SungJin1212

Copy link
Copy Markdown
Contributor

While #4700 migrated most metrics to use promauto for automatic registration, the alertmanager_silences metrics (Active, Pending, Expired) generated by newSilenceMetricByState were missed.

This PR migrate missed metric to use promauto.

@SungJin1212
SungJin1212 force-pushed the migrate-silences-to-promauto branch from 29e76f6 to b7f446d Compare January 5, 2026 01:29
@SungJin1212

Copy link
Copy Markdown
Contributor Author

@SuperQ
Could you take a look when you have a time?

@SuperQ
SuperQ merged commit 4781bbe into prometheus:main Jan 9, 2026
7 checks passed
@SoloJacobs SoloJacobs mentioned this pull request Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants