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/client_golang@v1.11.0/prometheus#NewRegistry and then only register the collectors you really want (i.e. do not register https://pkg.go.dev/github.com/prometheus/client_golang@v1.11.0/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