How to seed RRDtool from file with timestamps?
I have a file with timestamps for hits on a system. How can 开发者_如何转开发I feed this into the RRDtool database (or other similar solution), so that I can plot a time graph?
Use an ABSOLUTE type datasource and for every event you see do a
rrdtool update log.rrd $stamp:1
If you want to track different events, have multiple rrd files. You can then pull them all together into a single graph.
$stamp is the unix time format (seconds since 1970) so you have to convert the timestamps in your logfile first.
精彩评论