[rrd-developers] Graph data without the graph?

Mark Plaksin happy at usg.edu
Thu Sep 3 20:41:50 CEST 2009

Here's a fun feature request:  Make 'rrdtool graph -a JSON' return JSON
describing the graph instead of an image.  The idea being that you could
use Flot [1] or something similar to draw graphs.

The JSON could include everything rrdtool knows about the graph but at a
minimum it would have:

- width of graph
- an array of y-axis labels
-- having value,label eg: [[0,"0"], (...) ,[12884901888,"12G"],[16106127360,"15G"]]
-- Flot's default labels aren't "reduced" like RRDTool's are so you
   get a big number instead of a more human-readable "15G" or whatever.
- For each line:
-- array of data points for drawing the line.  Each having y, and timestamp
-- x being the array index

[1]  http://code.google.com/p/flot/

More information about the rrd-developers mailing list