jmx_exporter Cassandra GC pattern help

8 views
Skip to first unread message

apz-s58

unread,
Sep 3, 2023, 2:30:58 AM9/3/23
to Prometheus Users
Hi all
I am running openjdk 11.0.16.1 2022-08-12 and trying to scrape 
cassandra_gc_collection_time
cassandra_gc_duration
cassandra_gc_stats
using jmx_exporter

I confirmed using JConsole that C* is exposing atleast one of these metrics (collection_time) and when I use ".*" as pattern in jmx_config file I am able to see this metric at the /metric endpoint but with my current pattern I am not able to scrape it and need help with that. So far I have tried these patterns:
- pattern: java.lang<type=GarbageCollector, name=(G1 Yong Generation)><>CollectionCount name: cassandra_gc_collection_count type: GAUGE labels: name: "$1"

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

Any help would be appreciated.
Reply all
Reply to author
Forward
0 new messages