[collectd] GenericJMX config?
Svante Karlsson
svante.karlsson at csi.se
Fri Jun 12 21:02:31 CEST 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20150612/a9363fda/attachment.html>
More information about the collectd
mailing list