Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Tobias Oetiker
Mark, yes, as I pointed out in my last reply, you can use 3 RRAs with MIN, AVERAGE and MAX consolidation and then plot the data such dat you draw an area between MIN and MAX and overlay the AVERAGE line. The approach is to use CDEF to build the difference between MIN and MAX, then draw MIN withou

Re: [rrd-users] Question using VDEF

2007-07-20 Thread Alex van den Bogaerdt
On Fri, Jul 20, 2007 at 11:29:44PM +0200, Peter Mueller wrote: > This does not work: > VDEF:value=mydist,LAST > VDEF:distpercent=221,value,-,100,*,121,/ > GPRINT:distpercent:"%2.2lf" > > The problem is in the second line when I calculate distpercent. > How can I do this? Any other way? Try cdef

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Mark Seger
The thing that's interesting about this whole situation is that on one level rrd appears to draw a cleaner graph and the gnuplot one looks a little fuzzier, but I also think the gnuplot provides valuable information that gets lost, and probably missed with rrd. If my examples were disk perform

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Tobias Oetiker
Hi Mark, I will add the following to the rrdcreate manpage =over =item AVERAGE the average of the data points is stored. =item MIN the smallest of the data points is stored. =item MAX the largest of the data points is stored. =item LAST the last data points is used. =back Note that

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Tobias Oetiker
Mark, think about this: you give rrdtool 3 samples with the following values: 10, 100, 990 now you ask rrdtool to plot the data. And ithappens all three values get mapped to 1 pixel. If you pick AVERAGE the result will be 100 If you pick MAX it will be 990 If you pick MIN it will be 10 What

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Mark Seger
ok, I really hate to be a pain but I really want to get this right too and have spent almost 2 solid days trying to understand this and am still puzzled! I think rrd is pretty cool but if it's not the right tool to be using, just tell me. I believe when doing system monitoring it's absolutely

[rrd-users] Question using VDEF

2007-07-20 Thread Peter Mueller
Hello RRD-Users, I'm new to rrd and have the following question. To show the last value of a rrd in a meaningful unit I have to do some math in rrd-graph. This works ok for CDEF and plots the right graph. CDEF:realdist=221,mydist,-,100,*,121,/ LINE2:realdist#00c000:"%" Now I want to show t

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Mark Seger
I'd say my problems arose from the fact that I could find any description on what average, min, max and last do! If they're already somewhere may all that's needed is a link, but I didn't see anything. That said, under create manpage under RRA I'd expand the description of the consolidate fun

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Tobias Oetiker
Hi Mark, yes the 'lost' spike confuses people ... most, when they start thinking about it, see that rrdtool does exactly the right thing, it uses to consolidation method of the data being graphed to further consolidate for the graph ... so ifyou are using MAX as consolidation function for the RRA

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Mark Seger
Alex van den Bogaerdt wrote: > On Fri, Jul 20, 2007 at 12:31:25PM -0400, Mark Seger wrote: > >> more experiments and I'm getting closer... I think the problem is the >> AVERAGE in my DEF statements of the graphing command. The only problem >> is I couldn't find any clear description or exa

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Alex van den Bogaerdt
On Fri, Jul 20, 2007 at 12:31:25PM -0400, Mark Seger wrote: > more experiments and I'm getting closer... I think the problem is the > AVERAGE in my DEF statements of the graphing command. The only problem > is I couldn't find any clear description or examples of how this works. > I did try us

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Mark Seger
more experiments and I'm getting closer... I think the problem is the AVERAGE in my DEF statements of the graphing command. The only problem is I couldn't find any clear description or examples of how this works. I did try using LAST (even though I have no idea what it does) and my plots got

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Mark Seger
thanks for the detailed reply and the good news is it more or less agrees with how I thought this works. in fact, I did find a bug in my table loading script which caused the table to get created with an interval of 3 seconds vs 1 and so yes, things got normalized in unexpected way. once I go

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Simon Hobson
Mark Seger wrote: >I'm sure it's me and not rrdtool, but I can't figure out what's >happening! Here's what did: >- I have a data that has been generated at 1 second intervals >- generated a plot with gnuplot as a known quantity >- loaded the same data into rrdtool as absolute values and also with

[rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Mark Seger
I'm sure it's me and not rrdtool, but I can't figure out what's happening! Here's what did: - I have a data that has been generated at 1 second intervals - generated a plot with gnuplot as a known quantity - loaded the same data into rrdtool as absolute values and also with an interval of 1 sec