Discussion:
[cricket-users] Stacking targets
Jon Martin
2009-06-18 13:46:17 UTC
Permalink
Hello,

I'm interesting in creating a stack type graph out of similar
datasources from several targets of the same type. For example, an
area,stack,stack,stack graph using the ifOutOctets from 4 different
interfaces. In a way, it would be like a mtarget sum but with the
details of each of the contributing targets drawn as areas. I see in
the Cricket reference document that there are 4 draw-as values AREA,
LINE1, LINE2 and LINE3. No STACK? Is there a way to do this from
within cricket?

Here is a interpretation of what I want to do in raw rrd.

/usr/bin/rrdtool graph image.png \
--imgformat=PNG \
--start=-151200 \
--end=-300 \
--rigid \
--base=1000 \
--height=180 \
--width=560 \
--alt-autoscale-max \
DEF:aout="interface0.rrd":ds0:AVERAGE \
DEF:bout="interface1.rrd":ds0:AVERAGE \
DEF:cout="interface2.rrd":ds0:AVERAGE \
DEF:dout="interface3.rrd":ds0:AVERAGE \
AREA:aout#FF7373:"Channel0\t" \
STACK:bout#FF4040:"Channel1\t" \
STACK:cout#FF0000:"Channel2\t" \
STACK:dout#A60000:"Channel3\n" \
--color SHADEA#ffffff \
--color SHADEB#ffffff \
--color BACK#ffffff \
--color CANVAS#ffffff

thanks,
Jon Martin

Loading...