-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow blacklisting of jvm metrics #696
Comments
I have found how there are many default exports registered: jmx_exporter/jmx_prometheus_javaagent_java6/src/main/java/io/prometheus/jmx/JavaAgent.java Line 30 in ca972bf
I feel as though it would be a good option to implement a configuration option to allow these to be turned off (on by default), especially with the growing scenarios such as Kubernetes environments where all the extra metrics may not be needed. Is this something that sounds plausible? |
will appreciate such feature to, to not spawn our Prom cluster with the jvm container metrics |
This sounds like a great enhancement. It would require changes to ... ... to allow unregistering the collectors to support dynamic configuration reloading. |
Or as an alternative not use
|
Hello, I was hoping to understand why certain JVM metrics (java.lang:*) cannot be blacklisted/removed via configuration of the javaagent? The exporter should include these as there can be instances like in our case where we do not want the duplicate JVM metrics because they are collected by another application.
For example, the following should work but doesn't I believe:
The text was updated successfully, but these errors were encountered: