[rrd-users] SVG interaction on RRDs graphs

Vladimir Vuksan vlists at veus.hr
Fri Sep 16 21:46:33 CEST 2011


Here is the code that does it

https://github.com/vvuksan/ganglia-misc/blob/master/ganglia-web/graph.php#L494

Basically it looks for definitions then does rrdtool xport for period of 
interest. Then uses SimpleXML to parse it. After that you just output in 
the format you want e.g. this is for flot

https://github.com/vvuksan/ganglia-misc/blob/master/ganglia-web/graph.php#L559


On Fri, 16 Sep 2011, Kevin P. Foote wrote:

>
> Vladimir
>
> very cool!
>
> Any chance you can point to a code repo or post location where that data
> "massage" / manipulation code is?
>
> I'd like to take a go at something similar (JSON/Flot) outside of ganglia or other
> front ends.
>
> ------
> thanks
>  kevin.foote
>
> On Fri, 2 Sep 2011, Vladimir Vuksan wrote:
>
> -> I have written code for Ganglia (http://ganglia.info) that uses rrdtool
> -> export to export data of interest then "massages" the data into a proper JSON
> -> format. I then use Flot (Javascript graphing library) to draw the images. You
> -> can for instance see how it looks in action if you go here
> ->
> -> http://fjrkr5ab.joyent.us/ganglia-2.0/?r=hour&cs=&ce=&m=&c=bx+workservers&h=baker.bx.psu.edu&mc=2&z=medium&metric_group=cpu
> ->
> -> Find a graph that has an Enlarge button next to it. Click on it. You can then
> -> hover over the graph value and it will show you current value. This is very
> -> much work in progress.
> ->
> -> There was a patch submitted by Erik Kastner to allow rrdtool to export
> -> directly to JSON but I have not seen it included.
> ->
> -> Vladimir
> ->
> -> On Fri, 2 Sep 2011, nbelorgey wrote:
> ->
> -> > Richard,
> -> > The javascript graphing is huge !!!
> -> > This is fast, clear and efficient. The zoom is really user friendly &
> -> > impressive...
> -> >
> -> > But in our case, some graphs will stack between 20-* elements that are
> -> > stored in ~6 MB RRDs. ( We're stacking VMs performance métrics on VMware
> -> > Clusters)
> -> > And we have around 4-12 graph per page...  This will make for 25 VMs
> -> > 25*12*6
> -> > ~ 1800 MB to download ?
> -> >
> -> > The client canno't download and process so much data That's why it has to
> -> > be server site processed...
> -> >
> -> > Is there in your roadmap an ajax version that process on the server side
> -> > and
> -> > return only needed information for graphing purpose ?
> -> >
> -> >
> -> > --
> -> > View this message in context:
> -> > http://rrd-mailinglists.937164.n2.nabble.com/SVG-interaction-on-RRDs-graphs-tp6750442p6753841.html
> -> > Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
> -> >
> -> > _______________________________________________
> -> > rrd-users mailing list
> -> > rrd-users at lists.oetiker.ch
> -> > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


More information about the rrd-users mailing list