Skip to content

Refactor metric registration#4639

Merged
SuperQ merged 1 commit intomainfrom
superq/promauto
Oct 29, 2025
Merged

Refactor metric registration#4639
SuperQ merged 1 commit intomainfrom
superq/promauto

Conversation

@SuperQ
Copy link
Copy Markdown
Member

@SuperQ SuperQ commented Oct 29, 2025

Migrate metrics to use promauto to avoid forgotten metric registration.

@SuperQ
Copy link
Copy Markdown
Member Author

SuperQ commented Oct 29, 2025

👓 @siavashs

@SuperQ SuperQ force-pushed the superq/promauto branch 2 times, most recently from e3aea68 to 86b0c35 Compare October 29, 2025 08:16
Copy link
Copy Markdown
Contributor

@siavashs siavashs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are still CI failures which are related to tests passing a nil registry.

@SuperQ
Copy link
Copy Markdown
Member Author

SuperQ commented Oct 29, 2025

Yea, there are a bunch of bad registry implementations here. I'll see what I can fix.

@SuperQ
Copy link
Copy Markdown
Member Author

SuperQ commented Oct 29, 2025

@siavashs, let me know what you think of my solutions to the nil registry issues.

Copy link
Copy Markdown
Contributor

@siavashs siavashs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Migrate metrics to use promauto to avoid forgotten metric
registration.

Signed-off-by: SuperQ <superq@gmail.com>
@SuperQ SuperQ merged commit 81eff8c into main Oct 29, 2025
8 checks passed
@SuperQ SuperQ deleted the superq/promauto branch October 29, 2025 15:03
holger-waschke pushed a commit to holger-waschke/alertmanager that referenced this pull request Nov 1, 2025
Migrate metrics to use promauto to avoid forgotten metric
registration.

Signed-off-by: SuperQ <superq@gmail.com>
Signed-off-by: Holger Waschke <holger.waschke@dvag.com>
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.

2 participants