3

由于我的服务器托管在 VPS 中,因此我没有可以为 node_exporter(版本 0.17.0)提供磁盘统计信息的 /proc/diskstats。所以我最终得到了重复的错误消息:

错误 [0037] 错误:diskstats 收集器在 0.000034 秒后失败:无法获取 diskstats:打开 /proc/diskstats:没有这样的文件或目录 source="collector.go:132"

我想告诉出口商忽略 diskstats 收集器,但无法做到。因为只是放置标志 --collector.diskstats 什么都不做,因为它默认启用。

如何在告诉它忽略collector.diskstats(或任何其他收集器)的同时启动导出器?

太感谢了 !

4

1 回答 1

6

尝试运行

node_exporter --no-collector.diskstats

禁用diskstats收集器。node_exporter README包含有关如何启用和禁用特定收集器的更多详细信息。

于 2018-11-19T19:04:20.350 回答