[drraw-users] Combining multiple DS Templates

Christophe Kalt kalt at taranis.org
Sun Mar 25 15:46:14 MDT 2007


Hi,

On Mar 22, Philipp Richter wrote:
| I'm using collectd as my rrd-agent. I would like to produce filesystem usage 
| graphs out of the data from collectd. For every mountpoint collectd makes a 
| rrd file with 2 datasources (free and used bytes). I would like to use drraw 
| to graph a percent value out of these ds's for _every_ mountpoint on _one_ 
| graph.
| 
| if i would do this statically i would define 2 datasources (i.e. a:df-root.rrd 
| [used], b: df-root.rrd [free]) and then apply a cdef (i.e. 100,a,*,a,b,+,/) 
| to calculate the percent value.
| 
| but of course i have more mount points than "root" so i would like to do this 
| dynamically based on regular expressions. here is an example of what i try to 
| do: 
| http://haroon.sis.utoronto.ca/perl/rrd.cgi/localhost_stats/disk_usage.html
| 
| it seems this is currently not possible with drraw. did i overlook something  
| or is something like this planned in a future version?

Hmm..  i don't think you can do this because you're combining
two data sources.  "DS Templates" are close to what you want
but cannot deal with "sets" of data sources.

Sigh, the "DS Templates" code is already atrocious, i'm not
sure how easy it'd be to extend.

Christophe



More information about the drraw-users mailing list