python-diamond / Diamond

Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
http://diamond.readthedocs.org/
MIT License
1.74k stars 601 forks source link

feat: kafkajmx collector #719

Closed thehackercat closed 5 years ago

thehackercat commented 5 years ago

Note that kafkastat collector requires MX4J configured, and there is an easier way to collect kafka metrics via JMX,which is enabled by default when starting kafka.

You can go to confluent kafka monitoring to get metrics format

Metric(name='BytesInPerSec', jmx_metric='kafka.server:type=BrokerTopicMetrics,name=BytesInPerSec', jmx_attribute='Count')