[rrd-users] Re: Graphing our user base growth

Mark Smith mark.smith at comdev.cc
Tue May 15 22:34:03 MEST 2001


Try this:

rrdtool create numUsers.rrd --step 300
DS:numUsers:600:0:U
RRA:AVERAGE:0.5:1:300      # Daily, 1500 minutes, 1.04 days
RRA:AVERAGE:0.5:7:300      # Weekly, 10500 minutes, 7.3 days
RRA:AVERAGE:0.5:35:300     # Monthly, 52500 minutes, 36.5 days
RRA:AVERAGE:0.5:360:300    # Yearly, 540000 minutes, 375.0 days

Put all that on the same command line (minus the comments at the end of 
each RRA line) and try that.  That will give you a database with one 
Data Source (numUsers) and four RRAs:
- One for Daily information, one data point every five minutes
- One for Weekly information, one data point every 35 minutes
- One for Monthly information, one data point every 175 minutes
- One for Yearly information, one data point every 1800 minutes

This closely mimicks the information that MRTG keeps.  If you'd also 
like the maximum number of users, include these RRAs:

RRA:MAX:0.5:1:300    # Daily, 1500 minutes, 1.04 days
RRA:MAX:0.5:7:300    # Weekly, 10500 minutes, 7.3 days
RRA:MAX:0.5:35:300   # Monthly, 52500 minutes, 36.5 days
RRA:MAX:0.5:360:300  # Yearly, 540000 minutes, 375.0 days

This information was pulled from the RRDTool rrdcreate.html manpage 
available with the package in the doc/ directory.

-Mark

nat wrote:

> Hi all,
> 
> I have downloaded the rrdtool from the website and successfully completed
> the tutorials.
> 
> I would like to use it to graph the amount of users signed up on our system
> over time, I will update the database every 5 minutes.
> 
> I presume a sample maybe:
> 
> 15:05 - 6 users
> 15:10 - 6 users
> 15:15 - 7 users
> 15:20 - 8 users
> 15:25 - 8 users
> <cont....>
> 16:30 - 9 users
> 16:35 - 9 users
> 16:40 - 10 users
> 16:50 - 11 users
> <cont...>
> 19:15 - 11 users
> 19:20 - 12 users
> 19:25 - 15 users
> 
> etc.....
> 
> theses values will allways be integers, and i understand how to run the
> 'rrdtool update' command automatically every 5 minutes from a script. I am
> having problems working out the syntax of the 'rrdtool create' command to
> create the initial database, can anyone post a config? or refer me to a good
> example.
> 
> thanks for your time guys....
> 
> nat,
> --
> tenby, south wales - uk.
> 
> 
> 
> 
> 
> --
> 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


--
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