If you want access to that metric data in JSON format, the quickest way, by far, is to write a small conversion utility that fetches data from the gmetad. I can imagine a perl script running in Apache/CGI that does it on demand. You'd then have access to apache's caching capability. And if necessary, you could even make it so that you can query for scalars instead of the entire dataset. Imagine something like:
wget http://my-gmetad-proxy:8080/gxml-to-json.pl?cluster=foo&host=bar&metric=baz Someone who's PHP savvy could possibly write this so that it fit into the ganglia web. I'm not sure RPM dependencies are an issue at this point as this could be something optionally installed or simply disabled if JSON packages where not present. > -----Original Message----- > From: Dave Rawks [mailto:d...@pandora.com] > Sent: Thursday, January 26, 2012 7:38 PM > To: Bryan Thompson > Cc: ganglia-developers@lists.sourceforge.net > Subject: Re: [Ganglia-developers] Protocol Efficiency Ideas > > On 01/26/2012 02:02 PM, Bryan Thompson wrote: > > Ok. > > > > Not sure if this matters to your proposal, but GROUP is not always a > > single name/value pair. There can be multiple GROUPs for a metadata > > record. > > If there is more than one value for GROUP it could be an array instead of a > string, That'd bump the efficiency a bit higher on that case, but cost a few > bytes for the regular "one or none" case. > > > > > Is gmetad really pulling the XML from gmond? Why not just embed the > > logic to listen for UDP packets and develop a soft state model of the > > cluster metrics in gmetad? Jeff, is that what you meant by a major > > rewrite of gmetad? > > > > Yeah gmetad hits each "source" to collect data, the source in this case is the > tcp listener port of gmond, which only knows how to spew a full xml state > table. > > I'm personally in favor of entirely killing off gmetad in favor of a more > extensible gmond. If you could bolt on a storage, transport, or query plugin > as easily as you could a metric module it'd be completely killer. > > -Dave > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers is > just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro > Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Ganglia-developers mailing list > Ganglia-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ganglia-developers ________________________________ IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Ganglia-developers mailing list Ganglia-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-developers