[rrd-developers] Integrating RRD data with JS plot libraries?

Dan Cech dcech at phpwerx.net
Thu Jun 24 14:33:12 CEST 2010


On 6/24/2010 5:21 AM, Alex Bennee wrote:
> Hi,
>
> Has anyone looked at ways of doing this?
>
> I've been looking at the flot library [1] although there are many
> others that aim to achieve the same sort of thing. I'm guessing that
> graphs over a large number of sample buckets need to reduced to a
> sensible number of points, possibly collecting a new set when zooms
> are done.
>
> What's the best way to get RRD to spit out a series of data points as
> text? At the moment I'm using the RRDs perl module and doing a manual
> RRDs::fetch() and iterating through the returned @$rdata array but
> that does seem a little clunky, especially if I want to take advantage
> of the flexibility of the graph definition grammar.
>
> [1] http://code.google.com/p/flot/

Check out XPORT, I still haven't gotten around to playing with it, but 
seems like exactly what would be needed for this application.

http://oss.oetiker.ch/rrdtool/doc/rrdxport.en.html

Dan



More information about the rrd-developers mailing list