Syntactic Confectionery Delight | |
PerlMonks |
Re^3: Counting concurrent event jobsby mantadin (Beadle) |
on Apr 24, 2006 at 18:51 UTC ( [id://545353]=note: print w/replies, xml ) | Need Help?? |
Maybe you can consider rrdtool. This gives you a constant-size database with old data (you can configure what is "old" to you) getting stored with less granularity. You can feed it easily from a perl script. I do it with my logfiles to count events, and it produces very nice graphs. You feed it with a line like system ("/usr/bin/rrdtool update /path/to/my.rrd ".$logstr);, where $logstr is your data vector. Then you can f.e. use a cron job to read the lines of the f.e. last finished hour (last finished time interval) and count your interesting events. In this way you form the vector to feed to rrdtool (or to a dsv-file).
In Section
Seekers of Perl Wisdom
|
|