如何从带有时间戳的文件中种子 RRDtool?

发布于 2024-08-11 22:52:57 字数 146 浏览 1 评论 0原文

我有一个包含系统点击次数时间戳的文件。我如何将其输入 RRDtool 数据库(或其他类似的解决方案),以便我可以绘制时间图?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌酱 2024-08-18 22:52:57

使用 ABSOLUTE 类型数据源,并对您看到的每个事件执行 a

rrdtool update log.rrd $stamp:1

如果您想跟踪不同的事件,请拥有多个 rrd 文件。然后您可以将它们全部组合成一个图表。

$stamp 是 unix 时间格式(自 1970 年以来的秒数),因此您必须首先转换日志文件中的时间戳。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文