[rrd-users] Re: Graphing

Clifton Royston cliftonr at lava.net
Thu Jan 3 19:38:02 MET 2002

On Thu, Jan 03, 2002 at 12:42:19PM -0600, Christohper Pope wrote:
> Say this returns something like 35 users the first time, and 40 users
> the second time.
> I issue an update into the users.rrd w/the following create definition:
> rrdtool create --start `date +%s` user.rrd \
>   	DS:signin:GAUGE:600:0:U \
>    	RRA:AVERAGE:0.5:1:288 \
>     	RRA:AVERAGE:0.5:3:1680 \
> 	RRA:AVERAGE:0.5:6:1440 \
> 	RRA:AVERAGE:0.5:288:365 
> Graphing this, the results are in signins per second and i get
> something like (40 - 35)/(300 secs).

Something's wrong right there, because with a Gauge (think
"thermometer") time rates do not get stored or computed for the graph;
just the values that got stored.

The calculation you describe is what would happen for COUNTER or DERIVE
types, but shouldn't happen for a gauge.  

> I want the scale to be in "per 5 minutes" so that what I get is a
> graph of the number of users that signed in in that 5 minute
> interval, and not the average. So i used a CDEF in my graph command
> CDEF:s_signin=signin,300,* which should cancel with the division and
> leave me with (40 - 35) but instead I get values of over 1000 and the
> site just isn't that popular.  Is there something I'm missing?

Did you try it without that CDEF, and just graph signin directly?  That
should do exactly what you want.
  -- Clifton

 Clifton Royston  --  LavaNet Systems Architect --  cliftonr at lava.net
   WWJD?   "JWRTFM!" - Scott Dorsey (kludge)   "JWG" - Eddie Aikau

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list