From bfecaf3857384d4a60843cd9eda2d236fcf8206a Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Wed, 5 Apr 2017 08:32:53 +0200 Subject: [PATCH] Telegraf: activate influxdb input plugin The InfluxDB plugin will collect metrics on the given InfluxDB servers. Change-Id: I23f0433f56047369ce19bbf3236f6dd7038eb06e --- ansible/roles/telegraf/templates/telegraf.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/telegraf/templates/telegraf.conf.j2 b/ansible/roles/telegraf/templates/telegraf.conf.j2 index 6b40f41c53..5ba8fbbf28 100644 --- a/ansible/roles/telegraf/templates/telegraf.conf.j2 +++ b/ansible/roles/telegraf/templates/telegraf.conf.j2 @@ -24,6 +24,8 @@ [[inputs.disk]] ignore_fs = ["tmpfs", "devtmpfs"] [[inputs.diskio]] +[[inputs.influxdb]] + urls = [{% for host in groups['influxdb'] %}"{{ influxdb_proto }}://{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address']}}:{{ influxdb_http_port }}/debug/vars"{% if not loop.last %},{% endif %}{% endfor %}] [[inputs.kernel]] [[inputs.mem]] [[inputs.processes]]