Closed kuvaldini closed 3 years ago
I'm also curious about your reason for disabling them. Having these metrics is pretty common in other client libraries as well as in the prometheus server itself.
The prometheus guideline suggest that users SHOULD be able to disable these: https://prometheus.io/docs/instrumenting/writing_clientlibs/#standard-and-runtime-collectors
@jupp0r somebody of the users of our app asked to disable because this is uninteresting text.
I simply commented the lines of code to reach the feature. I do not think people really need to disable self-metrics.
@gjasny, no I would not. I do not think this has any real-world sense.
Right now there is no such functionality. Would you like to do a PR?