prometheus / jmx_exporter

A process for exposing JMX Beans via HTTP for Prometheus consumption
Apache License 2.0
3.06k stars 1.2k forks source link

Cache JMX connection and MBeans names and attributes #1019

Open max-melentyev opened 1 month ago

max-melentyev commented 1 month ago

Hey, I saw significant improvement with jmx connection cached. Here is a chart for sample cassandra cluster without any traffic, orange line is for an instance with patched exporter:

image

Cassandra Clusters with traffic have GC time and throughput decreased, and we saw latencies improved up to 50%. But this depends on the traffic patters and vary from cluster to cluster.

Implementation details:

dhoard commented 3 weeks ago

@max-melentyev Thanks for the PR! I'll need to review it.