fluentd(td-agent2)経由で、InfluxDBにデータ登録

シェアする

influxDBへ、fluentd経由でデータ登録する手順を確認したメモです。

前提

fluentdは、td-agent2としてインストールされた環境です。

プラグインのインストール

td-agent-gem install -V fluent-plugin-influxdb

fluentd設定

タグとして、「ifx.」で始まるものを登録する場合

<match ifx.*>
  type influxdb
  host  localhost
  port  8086
  dbname metric
  user  fluentd
  password  fluentd
  use_ssl false
  time_precision s
</match>

参考情報