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

Added hazelcast custom metrics config #944

Closed Nirzak closed 7 months ago

Nirzak commented 7 months ago

Added example config to fetch custom hazelcast metrics from jmx mbeans.

The metrics will be like as following

hazelcast_total_max_get_latency{instance="hz-instance",prefix="map",tag0="\"name=request-trace-cache\"",} 1.0 hazelcast_priority_queue_size{instance="hz-auth-instance",prefix="operation",} 0.0

It can also handle metrics with multiple tags.

hazelcast_connection_type{instance="hazelcastCacheInstance",prefix="tcp.connection, tag0=\"endpoint=[localhost]:5703\"",tag1="\"bindAddress=[testserver]:5703\"",} 1.0

Nirzak commented 7 months ago

The pull request will close issue #941

dhoard commented 7 months ago

@Nirzak Thanks for the PR!!!