Kafka JMX jolokia2 agent

Dashboard

Jolokia2 on top of JMX for Kafka To understand what metrics you can collect: https://github.com/liorzam/kafka_jmx_jolokia2_agent/blob/master/metrics.rb
Last updated: 2 years ago

Start with Grafana Cloud and the new FREE tier. Includes 10K series Prometheus or Graphite Metrics and 50gb Loki Logs

Downloads: 340

Reviews: 0

  • kafka-min.png
    kafka-min.png

https://github.com/liorzam/kafka_jmx_jolokia2_agent

Collector Configuration Details

Read Kafka metrics

[[inputs.jolokia2_agent]] name_prefix = "kafka_"

urls = ["http://kafka:<port>/jolokia"]

[[inputs.jolokia2_agent.metric]] name = "controller" mbean = "kafka.controller:name=,type=" field_prefix = "$1."

[[inputs.jolokia2_agent.metric]] name = "replica_manager" mbean = "kafka.server:name=*,type=ReplicaManager" field_prefix = "$1."

[[inputs.jolokia2_agent.metric]] name = "purgatory" mbean = "kafka.server:delayedOperation=,name=,type=DelayedOperationPurgatory" field_prefix = "$1." field_name = "$2"

[[inputs.jolokia2_agent.metric]] name = "client" mbean = "kafka.server:client-id=,type=" tag_keys = ["client-id", "type"]

[[inputs.jolokia2_agent.metric]] name = "request" mbean = "kafka.network:name=,request=,type=RequestMetrics" field_prefix = "$1." tag_keys = ["request"]

[[inputs.jolokia2_agent.metric]] name = "topics" mbean = "kafka.server:name=*,type=BrokerTopicMetrics" field_prefix = "$1."

[[inputs.jolokia2_agent.metric]] name = "partition" mbean = "kafka.log:name=LogFlushRateAndTimeMs,partition=,topic=,type=Log" field_name = "$1" tag_keys = ["topic", "partition"]

[[inputs.jolokia2_agent.metric]] name = "partition" mbean = "kafka.log:name=*,type=LogFlushStats" field_name = "$1"

[[inputs.jolokia2_agent.metric]] name = "partition" mbean = "kafka.cluster:name=UnderReplicated,partition=,topic=,type=Partition" field_name = "UnderReplicatedPartitions" tag_keys = ["topic", "partition"]

Get this dashboard:
12094
Dependencies: