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

Silence promauto metrics from Global registry #1

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

tpaschalis
Copy link
Member

@tpaschalis tpaschalis commented Apr 5, 2022

Signed-off-by: Paschalis Tsilias paschalis.tsilias@grafana.com

This is for the first iteration of the SNMP integration in grafana/agent#1364. We would like to avoid these metrics to the Global registry and the root /metrics.

Regarding the v1 SNMP integration cannot have a second endpoint, so there's no great way of presenting these internal metrics.

Regarding the v2 SNMP integration, we could add these 'internal' metrics back in a future improvement PR, exposed on a different endpoint. One solution would be to pass a prometheus.Registerer in our constructor, and use that to register those metrics.

Let me know if you think this is an acceptable solution as an MVP :)

Signed-off-by: Paschalis Tsilias <paschalis.tsilias@grafana.com>
@tpaschalis tpaschalis changed the title Silence promauto'ed metrics from Global registry Silence promauto metrics from Global registry Apr 5, 2022
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants