prometheus/collectd_exporter
- Prometheus サーバー本体と別に exporter プロセスを実行する
- 9103/tcp をリッスンするので Prometheus から scrape させる
- collectd からのデータ転送は collectd 側のプラグインで設定する
Write Prometheus plugin
- collectd 自体に 9103/tcp をリッスンさせて Prometheus から直接 scrape させる
The Write Prometheus plugin starts an internal webserver on port
9103
(configurable) and accepts scrape requests from Prometheus, an open-source monitoring system. This plugin is similar in scope to the collectd_exporter written by the Prometheus team and uses the same naming schema so it can be used as a drop-in alternative.
使い分け
- Prometheus から collectd に直接アクセスできるなら write_prometheus プラグインが手軽そう
- collectd へのアクセスに認証をかけている場合はどう設定するのだろう?
- prometheus.yml で http_config や tls_config を使う感じ?
- シンプルなぶん、込み入った設定には向かない?
- collectd へのアクセスに認証をかけている場合はどう設定するのだろう?
- collectd_exporter は TLS と Basic 認証をサポートしているので、やはり込み入ったことをしたい場合はこちらを使うのが良いのかも?