Skip to content

stop exporting go level metrics #956

Answered by beorn7
Khushbukela asked this question in Q&A
Discussion options

You must be logged in to vote

You have to use your own registry rather than the default one.

Create it with https://pkg.go.dev/github.com/prometheus/[email protected]/prometheus#NewRegistry and then only register the collectors you really want (i.e. do not register https://pkg.go.dev/github.com/prometheus/[email protected]/prometheus/collectors#NewGoCollector ).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kakkoyun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants