(一)编写一个exporter流程

  ⾸先 不同于pushgateway,  exporter是⼀个独⽴运⾏ 的采集程序 其中的功能需要有这三个部分

  1) ⾃⾝是HTTP 服务器,可以响应 从外发过来的 HTTP GET 请求

  2) ⾃⾝需要运⾏在后台,并可以定期触发 抓取本地的监控 数据

  3) 返回给prometheus_server 的内容 是需要符合 prometheus 规定的metrics 类型(Key-Value)

  4) key-value ->  prometheus(TS) values( float int ) return string *

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2023-03-15
  • 2022-12-23
  • 2021-05-14
猜你喜欢
  • 2022-12-23
  • 2022-02-03
  • 2021-09-08
  • 2022-01-31
  • 2021-09-22
  • 2021-09-09
相关资源
相似解决方案