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

Expose exporter.Handler and allow disabling default registry #2

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Oct 5, 2021

The Grafana Agent (https://github.com/grafana/agent) embeds mongodb_exporter as an integration, where it needs to be able to call into the exporter's HTTP handler for its all-in-one server. This endpoint also needs to only return metrics for the exporter itself and not from the global registry, which is populated by unrelated metrics.

This is a temporary PR for use in the Grafana Agent until percona#356 is merged.

Copy link

@mattdurham mattdurham left a comment

Choose a reason for hiding this comment

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

LGTM

@rfratto rfratto merged commit bef0f02 into release-0.20.7-grafana Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants