开发者

How to seed RRDtool from file with timestamps?

开发者 https://www.devze.com 2022-12-11 18:46 出处:网络
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 dat

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消