Skip to content

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