Ticket #39 (assigned enhancement)
Make VRULE at-time aware
| Reported by: | _Cray_@… | Owned by: | oetiker |
|---|---|---|---|
| Priority: | minor | Milestone: | RRDtool 1.3 |
| Component: | rrd_graph | Version: | 1.3dev |
| Keywords: | VRULE, at-time | Cc: |
Description
Hello!
It would be very nice if the VRULE statement of the "rrd graph" function would be aware of the so called "at-time" way of entering times, like it is the case with the time statements in "rrd fetch". I don't know how complex this task would be, given that I know close to nothing about the internal workings of rrdtool, but it would make using the VRULE for markings in graphs so much more useful. For example: I'd like to have a vertical line in the dayly-graph, marking the beginning of the new day (0 o'clock, or 12pm). As far as I know, the only way to do this is to calculating it, using the current system time, clear the seconds, minute and hour part of it and create a new timestamp with the result. Using at-time-style statements, this could be broken down to:
VRULE:midnight#abcdef
Maybe the "midnight" has to be escaped, to avoid mixing it up with a ?DEF'ed variable, but as far as I can guess, that should be doable.
Regards,
-Jan


