[rrd-users] max / min values not precise? Bug?
Simon Hobson
linux at thehobsons.co.uk
Sat Aug 23 16:00:22 CEST 2014
spock <collector at sappers.de> wrote:
> I have difficulties to interpret the graph created with the parameters below
> (I omitted some lines, but relevant data should be there).
>
> <http://rrd-mailinglists.937164.n2.nabble.com/file/n7582374/tempmo1.png>
>
> The graph shows
> - one line with high resolution data
> - one line with minimum values per day (step = 86400)
> - one line with maximum values per day (step = 86400)
>
> On the graph I do not understand, why the maximum value of the high
> resolution data does not correspond with the minimum / maximum values of the
> compressed data.
Because the line is not showing all the data.
> On the first and second day e.g. the max values are higher than any data
> point of the actual high resolution data.
> # rrdtool create temp_pool.rrd --step 900 --start "20140101 00:00" \
> graph_defs='-w 900 -h 525 -D -a PNG -T 15 --slope-mode \
First off, you haven't provided all the information - like what timescale the graph is plotted over (it looks like a bit over 2 weeks) or the actual data.
At a step of 900s, that's 96 periods per day. Over 16 days, that's over 1500 periods. You are plotting a graph that's around a third of that in pixels, so around 3 points will be averaged per pixel.
So you'd need to look carefully at the actual data to see what is "missing" from the graph you are plotting.
What I've done for a few of my graphs is plot a shaded area between min and max. Do a CDEF x_spread=x_max,x_min,- (where x_min is x:MINIMUM and x_max is x:MAXIMUM) and plot an area with full transparency of x_min, then stack and area of (say) 50% transparency of x_spread on top of it. Then draw your line of x. I suspect that with your parameters you'll find that the shaded area touches the min and max lines.
More information about the rrd-users
mailing list