> On 27. feb. 2016, at 18.08, Steffen Winther Sørensen <s...@siimnet.dk> wrote:
> 
> 
>> On 27. feb. 2016, at 02.18, Joshua J. Kugler <jos...@azariah.com 
>> <mailto:jos...@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
> 
> 

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

Reply via email to