-
Notifications
You must be signed in to change notification settings - Fork 6
rrdtool Documentation
We use rrdtool to generate some graphs. The data is currently being written to monitor.log from moitor.pyand contains information on bandwidth usage and usercount.
-
An understandable guide to
rrdtool: https://calomel.org/rrdtool.html -
My question on ServerFault, good answer: See: http://serverfault.com/a/662196/148056
$ rrdtool create monitor_db.rrd \
--step 900 \
--start 1404249670 \
DS:bandwidth:GAUGE:3600:0:1000 \
DS:usercount:GAUGE:8000:0:1000 \
RRA:MAX:0.5:1:140160
$
The program monitor.py is running with a cronjob and invokes rrdtool update with the appropriate parameters.
Currently, the databse expects a new value every 15 mins but we might decrease the time interval some time. (Not sure if 15 mins is detailed "enough")
I was collecting data to monitor.log for 6 months before i started using rrdtool. Here is how I imported it to a RRD database.
-
Create database as per above
-
Import with
monitorparser.pytool -
Generate some graphs with
grap.sh.
I will probably have to re-import the log file if I add fields or decrease the interval.