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