[collectd] Using GenericJMX to consume array's of objects ?
Joe Armstrong
jarmstrong at postpath.com
Thu Oct 14 18:52:06 CEST 2010
> -----Original Message-----
> From: matthew sporleder [mailto:msporleder at gmail.com]
> Sent: Thursday, October 14, 2010 4:19 AM
> To: Joe Armstrong
> Cc: collectd at verplant.org
> Subject: Re: [collectd] Using GenericJMX to consume array's of objects
> ?
>
> On Wed, Oct 13, 2010 at 5:17 PM, Joe Armstrong
> <jarmstrong at postpath.com> wrote:
> > Hi Guys,
> >
> >
> >
> > I have a webservice that is instrumented with JMX (MXBean) that
> produces an
> > array of objects, I can't seem to figure out what the collectd.conf
> should
> > look like to consume this information.
> >
> >
[deleted the detailed stuff]
> >
> > Jconsole can view the data with no problems.
> >
> >
> >
> > The error I get from collectd depends on what collectd.conf contains
> - I
> > have tried a lot of different versions so I won't waste your time by
> giving
> > you all of the versions that don't work. But basically the error
> always
> > complains that the <Value> Attribute member can't be queried (ex.
> Querying
> > attribute bytesSent failed).
> >
>
> collectd will do a recursive loop through an MBean with multiple
> attributes, but I think they need to be a special type like
> javax.management.openmbean.CompositeData.
The MBean server does transform my user-defined type (ConnectData) to an array of CompositeData (I can verify this using jconsole).
Joe
More information about the collectd
mailing list