-
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
includeObjectNames option issue #879
Comments
Which version of the JMX Exporter are you using?
jmx_exporter/collector/src/main/java/io/prometheus/jmx/JmxCollector.java Lines 229 to 257 in 89275ac
|
Hi there. I am using this version #Generated by Maven The config looks like:
|
This change was introduced into 0.20.0. I would suggest you upgrade due to other performance enhancements in 0.20.0. |
could you update README file of the repository to make it consistent. |
I have updated README.md. |
Hi All.
We are running "JBoss EAP 7.4.6.GA (WildFly Core 15.0.15.Final-redhat-00001)"
We are having slow scraping performance (up2 15+sec). I found such issue:
#246
#284
We would like to get data from some specific MBeans only. Was testing with "java.lang:*". While using below configuration it is working blazing fast (less than 1sec) and gets data from those MBeans only as required:
whitelistObjectNames: ["java.lang:*"]
However I found such statement in the docs:
Both whitelistObjectNames and blacklistObjectNames are still supported for backward compatibility, but should be considered deprecated.
So I would assume includeObjectNames param should be used instead nowadays?
But when I put:
includeObjectNames: ["java.lang:*"]
It does nothing - very long scraping time and gets all MBeans.
Could you please tell what is recommended settings to get only specific MBeans and have the great scraping performance now? Is it still whitelistObjectNames?
Of course I also tried it with:
rules:
- pattern: "java.lang*"
Yes, I get only specific MBeans data but the scraping speed is very slow comparing to using whitelistObjectNames. So it looks like it fetches all possible MBeans data and only after that does the filtering.
The text was updated successfully, but these errors were encountered: