Well here is something that I put together on the spur of the moment for someone, - just to return the latest entry. But I think that Vladimir’s comment is the way to go. Now that I look, I certainly should also have followed the parameter convention: http://sourceforge.net/apps/trac/ganglia/wiki/web_get_vars, but I do not see a good time range parameter.
But anyone is free to use and abuse, just don’t give me any comments because it was just something for a one shot deal and done in 10 minutes. From: Nick Satterly [mailto:[email protected]] Sent: Monday, April 28, 2014 11:17 AM To: Silver, Jonathan Cc: Azaz Rauf; [email protected] Subject: Re: [Ganglia-general] Restful Api for Ganglia Database Hi Jon, I think you misunderstood me. All I referred to was a git commit log entry to a pull request that added support for responding to HTTP requests with current metric data. The relevant GitHub pull request does not include any documentation https://github.com/ganglia/monitor-core/pull/60 What I think Azaz wants so that he could develop his own dashboard, and what has not been officially implemented, is an historical metric REST API. There was a Google summer of code proposal to look at a more advanced (non-historical) metric API (see https://github.com/ganglia/monitor-core/wiki/GSoC-2014-project-ideas#api) but there we no takers as far as I know. If anyone has some code they'd like to share with the Ganglia community that implements an API that presents historical metric data (ie. perhaps sourced from the RRD's or stored some other way) then please do. It doesn't matter how bad you might think your code is, it would be a start and people can then build on that. Regards, Nick On Mon, Apr 28, 2014 at 1:47 PM, Silver, Jonathan <[email protected]<mailto:[email protected]>> wrote: Nick, Can you please resend the link to the restful interface documentation. I did not see it and ended up implementing my own, But I’d really rather use the official. Thanks, jon From: Nick Satterly [mailto:[email protected]<mailto:[email protected]>] Sent: Saturday, April 26, 2014 3:36 PM To: Azaz Rauf Cc: [email protected]<mailto:[email protected]> Subject: Re: [Ganglia-general] Restful Api for Ganglia Database Hi Azaz, If by RESTful you just mean "accessible via HTTP" then this is already possible [1]. Note, that this API interface is readonly so only GETs are allowed. Also note that this is not historical data. It is the most recent collected value for every metric -- in XML. If you wanted historical data accessible via a HTTP API then you would need to develop something yourself -- I don't know of any working examples but there may be others on this email list willing to share their work if asked. Regards, Nick [1] git diff --color 4c63db2{^,} On Thu, Apr 17, 2014 at 6:53 PM, Azaz Rauf <[email protected]<mailto:[email protected]>> wrote: Hi, I need to write restful services which should return metrics data from ganglia database. So instead of using web front end provided by ganalia, I need to integrate my own dashboard with ganglia database. I have searched but it seems that ganglia did not provide restful services to access its database. Kindly let me know how to achieve this? Thanks ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Ganglia-general mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/ganglia-general -- gpg: using PGP trust model pub 4096R/1EE38BD9 2013-01-06 [expires: 2018-01-06] Key fingerprint = 3EE9 550D D9D8 DB65 58C2 B58D CE78 EC6C 1EE3 8BD9 uid Nicholas Satterly (Debian Key) <[email protected]<mailto:[email protected]>> sub 4096R/23804EE9 2013-01-06 [expires: 2018-01-06] -- gpg: using PGP trust model pub 4096R/1EE38BD9 2013-01-06 [expires: 2018-01-06] Key fingerprint = 3EE9 550D D9D8 DB65 58C2 B58D CE78 EC6C 1EE3 8BD9 uid Nicholas Satterly (Debian Key) <[email protected]<mailto:[email protected]>> sub 4096R/23804EE9 2013-01-06 [expires: 2018-01-06]
GetMetricsFromGangliawithRest.change2zip
Description: GetMetricsFromGangliawithRest.change2zip
------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs
_______________________________________________ Ganglia-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ganglia-general

