【问题标题】:How to write custom node exporter for collecting machine metrics with prometheus?如何编写自定义节点导出器以使用 prometheus 收集机器指标?
【发布时间】:2019-06-19 05:43:04
【问题描述】:

我是 prometheus 的初学者,实际上我的 windows 系统中有 prometheus 包。 'Prometheus.exe' 工作正常,我可以在浏览器中看到“localhost:9090”中的数据。

我需要抓取机器指标,例如我的 Windows 系统的 cpu 总内存、可用内存、可用内存和缓存内存,而我完全卡住了,不知道该怎么做。

我是否需要编写自己的节点导出器来实现这一点?如果我需要编写自己的节点导出器,如何作为初学者开始?需要传递给 prometheus 的输入格式是什么?

有人请帮助我如何使用 prometheus 抓取我的 windows 机器 cpu 内存详细信息,并建议您是否有任何链接可以实现此目的?

【问题讨论】:

    标签: windows prometheus prometheus-node-exporter


    【解决方案1】:

    您绝对可以write your own exporter,但请务必先检查WMI Exporter(Prometheus 的node exporter 似乎仅限于 *NIX 操作系统)。

    除此之外,您可能还想查看a bunch of exporters,以满足更具体的需求。

    【讨论】:

      猜你喜欢
      • 2018-11-19
      • 2020-04-05
      • 2021-04-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多