[collectd] Problems using and understanding the JMX plugin

collectd.org at siimnet.dk collectd.org at siimnet.dk
Sat Feb 27 18:10:21 CET 2016


> On 27. feb. 2016, at 18.08, Steffen Winther Sørensen <stws at siimnet.dk> wrote:
> 
> 
>> On 27. feb. 2016, at 02.18, Joshua J. Kugler <joshua at azariah.com <mailto:joshua at azariah.com>> wrote:
>> 
>> Howdy! Setting up collectd is going well. Just hit a couple snags.
>> 
>> I'm trying to use the JMX plugin to get metrics. I'm implementing information 
>> I've been handed by others, so don't have 100% introspection into the target 
>> server. I'm seeing this in the collectd logs: "getAttribute failed: 
>> javax.management.ReflectionException: No such operation: Count"  But...it's not 
>> telling me the MBean on which it is throwing that error. How could I obtain 
>> that information?
> Well you could apply binary search by only enabled half of mbeans at a time and thus narrow in on the bad one.
> Or try connecting a JConsole against your app and browse the app. mbeans and verify them.
> 
>> 
>> Also getting this message: GenericJMXConfValue: Cannot convert list of objects 
>> to numbers., again with no mention of the MBean that is failing. What config 
>> might I need to change so it will accept the list of objects?
> No not sure, maybe you’ve gotten multivalued objects and need to be more specific targeting.
> I was new to mbeans and confused about naming but found through jconsole browsing <https://dl.dropboxusercontent.com/u/13225502/jmxmbeanexample.tiff> my cassandra mbeans for logstash jmx collection like these:
> 
> {
>   "host" : "localhost",
>   "port" : 8081,
>   "alias" : "meta",
>   "queries" : [ {
>       "object_name" : "org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Capacity",
>       "object_alias" : "${type}.${scope}.${name}"
>       },{
>       "object_name" : "org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Entries",
>       "object_alias" : "${type}.${scope}.${name}"
>       },{
>       "object_name" : "org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=HitRate",
>       "object_alias" : "${type}.${scope}.${name}"
>       },{
>       "object_name" : "org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Size",
>       "object_alias" : "${type}.${scope}.${name}"
>       },{
>       "object_name" : "org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Hits",
>       "attributes" : ["Count","FifteenMinuteRate","FiveMinuteRate","OneMinuteRate","MeanRate","RateUnit","EventType"],
>       "object_alias" : "${type}.${scope}.${name}"
>       }
>     } ]
> }
> 
> Maybe it’ll help lead you in right direction...
> 
> /Steffen
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20160227/f09f66b9/attachment.html>


More information about the collectd mailing list