【问题标题】:Starting node_exporter while disable-ling a specific collector - collector.diskstats在禁用特定收集器时启动 node_exporter - collector.diskstats
【发布时间】:2019-04-22 02:32:12
【问题描述】:

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

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

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

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

非常感谢!

【问题讨论】:

    标签: prometheus prometheus-node-exporter


    【解决方案1】:

    尝试运行

    node_exporter --no-collector.diskstats
    

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

    【讨论】:

    • 很高兴听到。如果这对您有帮助,请点赞/标记为已回答。
    • 我做了奥利弗。但是,由于我的声誉仍然很低,它说我的排名已被记录但仍未公开显示:(
    • 很遗憾--no- 前缀没有记录在--help 选项中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-11-05
    • 2018-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多