[collectd] Using GenericJMX to consume array's of objects ?

Joe Armstrong jarmstrong at postpath.com
Thu Oct 14 18:59:41 CEST 2010


I just did a test, if I make the data from the MXBean just be a single instance of the class then it works, but it does not work if it is an array...

Any help on that ?

Thanks.

Joe

> -----Original Message-----
> From: collectd-bounces at verplant.org [mailto:collectd-
> bounces at verplant.org] On Behalf Of Joe Armstrong
> Sent: Thursday, October 14, 2010 9:52 AM
> To: 'matthew sporleder'
> Cc: collectd at verplant.org
> Subject: Re: [collectd] Using GenericJMX to consume array's of objects
> ?
> 
> 
> 
> > -----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
> 
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd



More information about the collectd mailing list