Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含系统命中时间戳的文件。如何将其输入RRDtool数据库(或其他类似解决方案),以便绘制时间图?
使用 ABSOLUTE 类型的数据源,并为您看到的每个事件执行
rrdtool update log.rrd $stamp:1
如果要跟踪不同的事件,请拥有多个 rrd 文件。然后,您可以将它们全部拉到一个图表中。
$stamp 是 unix 时间格式(自 1970 年以来的秒数),因此您必须首先转换日志文件中的时间戳。