Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pkg/metric] - Add the ability to register a new metrics collector to the registry #155

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

calbritt
Copy link
Contributor

Adding RegisterCollector to support adding a custom prometheus Collector to the prometheus Metrics Registry. Currently MetricsRegistry only allows creating a registry with the default GoCollector and ProcessCollector.

Copy link
Contributor

@onelapahead onelapahead left a comment

Choose a reason for hiding this comment

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

Looks great to me, just some small nits. Will defer to @EnriqueL8 @shorsher for a review.

pkg/metric/metric.go Outdated Show resolved Hide resolved
pkg/metric/metric.go Outdated Show resolved Hide resolved
Signed-off-by: Cari Albritton <[email protected]>
Signed-off-by: Cari Albritton <[email protected]>
Signed-off-by: Cari Albritton <[email protected]>
@peterbroadhurst peterbroadhurst merged commit 851eeb4 into hyperledger:main Oct 24, 2024
3 checks passed
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.

3 participants