jmx_exporter missing metric

52 views
Skip to first unread message

apz-s58

unread,
Sep 3, 2023, 2:31:11 AM9/3/23
to Prometheus Users
Hi all
I am using jmx exporter to scrape metrics from C* version 4. I am not seeing cassandra_gc_collection_count at the /metric endpoint. Using JConsole I confirmed that C* is exposing that metric but I think my pattern is wrong. When I change to ".*" pattern I did see this metric. These are the patterns I have tried but no luck:

- pattern: java.lang<type=GarbageCollector, name=(.+)><>(CollectionCount) name: cassandra_gc_collection_count type: GAUGE labels: name: "$1"

- pattern: java.lang<type=GarbageCollector, name=(G1 Yong Generation)><>CollectionCount name: cassandra_gc_collection_count type: GAUGE labels: name: "$1"

java.lang:type=GarbageCollector,* is in whitelistObjectNames.

Any pointers would be helpful.
Thanks
Reply all
Reply to author
Forward
0 new messages