[rrd-users] Graph per month - is it possible?
Tobias Oetiker
tobi at oetiker.ch
Mon Apr 4 08:57:42 CEST 2011
Hi Maris,
Yesterday Maris Janis Vasilevskis wrote:
> Thank you, Tobi.
>
> But I do not use expressions anywhere in real tasks.
> I placed expressions in code samples to make the text readable.
> In my real experiments, only numbers (values of these expressions) are used.
ah, I see the problem ... the step size you configured, is still
aligned to 1970 ... as such it will not align with the start of
your data ...
I guess it should be possible by setting the step to 1 day / hour and using VDEF
to calculate the AVERAGE and then CDEF on the result, using the
available data in the DEF to mask out the duration but takeing the
value from VDEF ...
cheers
tobi
>
> Mahris
>
> Tobias Oetiker wrote 2011.04.03. 14:04:
> > Hi Maris,
> >
> > Today Maris Janis Vasilevskis wrote:
> >
> >> In following excerpts, I use dates and expressions for readability.
> >> In reality, I use only numbers - seconds for step, seconds from epoch for start and end.
> >>
> >> rrdtool create test.rrd --step 1 --start -2year DS:cpu:GAUGE:600:0:100
> >> RRA:AVERAGE:0.5:24*3600:720
> >> There are also RRAs for week, hour and minute.
> >> To be safe about last year data, I filled database with test values for 2 years (update with step 10 secs).
> >>
> >> rrtool graph --end now --start end-14month
> >> DEF:avr4=test.rrd:cpu:AVERAGE:step=30*24*3600:start=1Apr2010:end=1May2010
> >> LINE:avr4#FF0000
> >> DEF:avr5=test.rrd:cpu:AVERAGE:step=31*24*3600:start=1May2010:end=1Jun2010
> >> LINE:avr5#FF0000
> >> ...
> >>
> >> I get results for some months only, most part of graph is empty.
> >
> > cool idea ... but you can not have math expression in the step
> > argument, so you must calculte them externally.
> >
> > cheers
> > tobi
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-users
mailing list