jmx_exporter icon indicating copy to clipboard operation
jmx_exporter copied to clipboard

Optionally disable all default exports for JavaAgent

Open udesaiitrs opened this issue 2 years ago • 6 comments

Signed-off-by: udesaiitrs [email protected]

@tomwilkie @fstab We've had increased requests to support this to reduce duplicated JVM metrics being collected from the jmx_exporter. This is a rough PR, please let me know if this is something we can include in the next release.

udesaiitrs avatar Mar 25 '22 21:03 udesaiitrs

Fix #696

udesaiitrs avatar Mar 25 '22 21:03 udesaiitrs

@udesaiitrs I agree this could be useful in specific scenarios... but I feel that the configuration should be added to the configuration YAML.

dhoard avatar May 13 '22 12:05 dhoard

Sorry for the delay. As @dhoard mentioned, there is a branch for a new YAML config file format that we are working on. It was originally started for extended SSL configuration options, but it also introduces advanced filtering which will achieve what you need.

Here's an example: https://github.com/prometheus/jmx_exporter/blob/new-config/integration_tests/ssl_tests/src/test/resources/test-config-new.yaml

It's still work in progress. Do you think this would solve the issue?

fstab avatar Jul 10 '22 19:07 fstab

Sorry for the delay. As @dhoard mentioned, there is a branch for a new YAML config file format that we are working on. It was originally started for extended SSL configuration options, but it also introduces advanced filtering which will achieve what you need.

Here's an example: https://github.com/prometheus/jmx_exporter/blob/new-config/integration_tests/ssl_tests/src/test/resources/test-config-new.yaml

It's still work in progress. Do you think this would solve the issue?

Sorry for the delay, yes something like this is exactly what we're looking for. Will this also apply to the JVM metrics collected by the jmx exporter? We collect JVM metrics via our own custom collector, and do not want the default JVM metrics collected by the exporter. Any eta on when it will be released?

udesaiitrs avatar Aug 12 '22 21:08 udesaiitrs

Seems to be stuck. And we're still waiting

weidox avatar Dec 28 '22 12:12 weidox

Sorry for the delay. As @dhoard mentioned, there is a branch for a new YAML config file format that we are working on. It was originally started for extended SSL configuration options, but it also introduces advanced filtering which will achieve what you need.

Here's an example: https://github.com/prometheus/jmx_exporter/blob/new-config/integration_tests/ssl_tests/src/test/resources/test-config-new.yaml

It's still work in progress. Do you think this would solve the issue?

Yes this would solve the issue I believe, is there an ETA on merging/releasing this change?

udesaiitrs avatar Dec 28 '22 15:12 udesaiitrs