I'm trying to move monitoring of kafka from jmxtrans to collectd 5.5 but
I'm having problems with the configuration of GenericJMX.



 <Plugin "GenericJMX">
    <MBean "kafka/messageIn">
        ObjectName
"kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec,topic=*"
        <Value>
           Type "gauge"
           InstanceFrom "topic"
           Table false
           Attribute "OneMinuteRate"
           InstancePrefix "kafka-MessagesInPerSec-"
        </Value>
 </MBean>


currently I export to graphite (and kafka) and the metrics ends up like
below in graphite.


kafka_a_prod.asus-520-1.collectd.GenericJMX.gauge-kafka-MessagesInPerSec-collectd_graphite
kafka_a_prod.asus-520-1.collectd.GenericJMX.gauge-kafka-MessagesInPerSec-collectd_json
kafka_a_prod.asus-520-1.collectd.GenericJMX.gauge-kafka-MessagesInPerSec-dummy_topic
kafka_a_prod.asus-520-2.collectd.GenericJMX.gauge-kafka-MessagesInPerSec-collectd_graphite
kafka_a_prod.asus-520-2.collectd.GenericJMX.gauge-kafka-MessagesInPerSec-collectd_json
kafka_a_prod.asus-520-2.collectd.GenericJMX.gauge-kafka-MessagesInPerSec-dummy_topic
kafka_a_prod.asus-520-3.collectd.GenericJMX.gauge-kafka-MessagesInPerSec-collectd_graphite
kafka_a_prod.asus-520-3.collectd.GenericJMX.gauge-kafka-MessagesInPerSec-collectd_json
kafka_a_prod.asus-520-3.collectd.GenericJMX.gauge-kafka-MessagesInPerSec-dummy_topic

how should I configure the bean to get more sane metric names?

I get underscores between the parts if I try to use "." and the prefix
seems to work as postfix.

ps
In a perfect world I would have liked the names to something like

kafka.MessagesInPerSec.dummy_topic.OneMinuteRate

but I'll take whatever is possible :-)


my beans look like

kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec,topic=dummy_topic
    Attributes
        ...
       OneMinuteRate


best regards
svante
_______________________________________________
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd

Reply via email to