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

Pass around custom registry for registering exporter metrics #347

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

rfratto
Copy link
Contributor

@rfratto rfratto commented Nov 20, 2020

Importers of pkg/exporter may not want for series to be imported into the default registry. This PR makes it possible to provide a custom registry for metrics registration.

Signed-off-by: Robert Fratto [email protected]

Importers of pkg/exporter may not want for series to be imported into
the default registry. This commit makes it possible to provide a custom
registry for metrics registration.

Signed-off-by: Robert Fratto <[email protected]>
Copy link
Contributor

@matthiasr matthiasr left a comment

Choose a reason for hiding this comment

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

Ah, the joys of dependency injection 😂 looks good, and a good idea to allow this, thank you!

@matthiasr matthiasr merged commit 8772c03 into prometheus:master Nov 24, 2020
matthiasr pushed a commit that referenced this pull request Nov 24, 2020
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