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

Hotspot: DefaultExports with a custom CollectorRegistry #450

Merged
merged 1 commit into from
Jan 9, 2019
Merged

Hotspot: DefaultExports with a custom CollectorRegistry #450

merged 1 commit into from
Jan 9, 2019

Conversation

twz123
Copy link
Contributor

@twz123 twz123 commented Dec 19, 2018

Add a register(CollectorRegistry) method, so that DefaultExports can also be used with CollectorRegistries besides the default one.

…stry

Signed-off-by: Tom Wieczorek <t.wieczorek@yieldlab.de>
@brian-brazil
Copy link
Contributor

May I ask what your use case is?

@bjoernhaeuser
Copy link

bjoernhaeuser commented Jan 9, 2019

With spring boot 2 there is the possibility to have a autowired / spring managed collector registry, which is not the default one. The default exports then register against another collector registry, which is not getting exported.

@brian-brazil brian-brazil merged commit fcde955 into prometheus:master Jan 9, 2019
@brian-brazil
Copy link
Contributor

Thanks!

@twz123 twz123 deleted the defaultexports-with-registry branch July 15, 2020 20:22
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