使用telegraf收集监控接入Prometheus

1. 网友实践

https://alialili.cn/archives/32

 

2. 官方用法

https://github.com/influxdata/telegraf/tree/master/plugins/serializers/prometheus

 

3. 类似于textfile用法,telegraf读取prom文件

https://github.com/influxdata/telegraf/tree/master/plugins/parsers/prometheus

[[inputs.file]]
  files = ["example"]

  ## Data format to consume.
  ## Each data format has its own unique set of configuration options, read
  ## more about them here:
  ##   https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_INPUT.md
  data_format = "prometheus"

 

posted @ 2022-09-20 22:08  明天OoO你好  阅读(1109)  评论(0编辑  收藏  举报