[prev in list] [next in list] [prev in thread] [next in thread] 

List:       collectd
Subject:    Re: [collectd] Problems using and understanding the JMX plugin
From:       collectd.org () siimnet ! dk
Date:       2016-02-27 17:10:21
Message-ID: 1559B416-F9B3-462F-A6DB-35D665A57395 () siimnet ! dk
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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


[Attachment #5 (text/html)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=UTF-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote \
type="cite" class=""><div class="">On 27. feb. 2016, at 18.08, Steffen Winther \
Sørensen &lt;<a href="mailto:stws@siimnet.dk" class="">stws@siimnet.dk</a>&gt; \
wrote:</div><br class="Apple-interchange-newline"><div class=""><meta \
http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div \
style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" \
class=""><div class="">On 27. feb. 2016, at 02.18, Joshua J. Kugler &lt;<a \
href="mailto:joshua@azariah.com" class="">joshua@azariah.com</a>&gt; wrote:</div><br \
class="Apple-interchange-newline"><div class=""><div class="">Howdy! Setting up \
collectd is going well. Just hit a couple snags.<br class=""><br class=""> I'm trying \
to use the JMX plugin to get metrics. I'm implementing information <br class="">I've \
been handed by others, so don't have 100% introspection into the target <br \
class="">server. I'm seeing this in the collectd logs: "getAttribute failed: <br \
class="">javax.management.ReflectionException: No such operation: Count" \
&nbsp;But...it's not <br class="">telling me the MBean on which it is throwing that \
error. How could I obtain <br class="">that information?<br \
class=""></div></div></blockquote>Well you could apply binary search by only enabled \
half of mbeans at a time and thus narrow in on the bad one.</div><div class="">Or try \
connecting a JConsole against your app and browse the app. mbeans and verify \
them.</div><div class=""><br class=""><blockquote type="cite" class=""><div \
class=""><div class=""><br class="">Also getting this message: GenericJMXConfValue: \
Cannot convert list of objects <br class="">to numbers., again with no mention of the \
MBean that is failing. What config <br class="">might I need to change so it will \
accept the list of objects?<br class=""></div></div></blockquote>No not sure, maybe \
you've gotten multivalued objects and need to be more specific targeting.</div><div \
class="">I was new to mbeans and confused about naming but found through&nbsp;<a \
href="https://dl.dropboxusercontent.com/u/13225502/jmxmbeanexample.tiff" \
class="">jconsole browsing</a>&nbsp;my cassandra mbeans for logstash jmx collection \
like these:</div><div class=""><br class=""></div><div class=""><div style="margin: \
0px; font-size: 14px; line-height: normal; font-family: Courier; color: rgb(76, 47, \
45);" class="">{</div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; "host" : \
"localhost",</div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; "port" : \
8081,</div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; "alias" : \
"meta",</div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; "queries" : [ \
{</div><div style="margin: 0px; font-size: 14px; line-height: normal; font-family: \
Courier; color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; "object_name" : \
"org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Capacity",</div><div \
style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier; \
color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; "object_alias" : \
"${type}.${scope}.${name}"</div><div style="margin: 0px; font-size: 14px; \
line-height: normal; font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; \
&nbsp; &nbsp; },{</div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; \
"object_name" : "org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Entries",</div><div \
style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier; \
color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; "object_alias" : \
"${type}.${scope}.${name}"</div><div style="margin: 0px; font-size: 14px; \
line-height: normal; font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; \
&nbsp; &nbsp; },{</div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; \
"object_name" : "org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=HitRate",</div><div \
style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier; \
color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; "object_alias" : \
"${type}.${scope}.${name}"</div><div style="margin: 0px; font-size: 14px; \
line-height: normal; font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; \
&nbsp; &nbsp; },{</div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; \
"object_name" : "org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Size",</div><div \
style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier; \
color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; "object_alias" : \
"${type}.${scope}.${name}"</div><div style="margin: 0px; font-size: 14px; \
line-height: normal; font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; \
&nbsp; &nbsp; },{</div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; \
"object_name" : "org.apache.cassandra.metrics:type=Cache,scope=KeyCache,name=Hits",</div><div \
style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier; \
color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; "attributes" : \
["Count","FifteenMinuteRate","FiveMinuteRate","OneMinuteRate","MeanRate","RateUnit","EventType"],</div><div \
style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier; \
color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; &nbsp; "object_alias" : \
"${type}.${scope}.${name}"</div><div style="margin: 0px; font-size: 14px; \
line-height: normal; font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; \
&nbsp; &nbsp; }</div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">&nbsp; &nbsp; } ]</div><div \
style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier; \
color: rgb(76, 47, 45);" class="">}</div><div style="margin: 0px; font-size: 14px; \
line-height: normal; font-family: Courier; color: rgb(76, 47, 45);" class=""><br \
class=""></div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">Maybe it'll help lead you in \
right direction...</div><div style="margin: 0px; font-size: 14px; line-height: \
normal; font-family: Courier; color: rgb(76, 47, 45);" class=""><br \
class=""></div><div style="margin: 0px; font-size: 14px; line-height: normal; \
font-family: Courier; color: rgb(76, 47, 45);" class="">/Steffen</div></div><div \
class=""><br class=""></div><br class=""></div></div></blockquote></div><br \
class=""></body></html>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic