From a914fb6671312ab9b8ddf3fed98160fca0e6b93c Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Tue, 4 Apr 2017 10:14:06 +0200 Subject: [PATCH] Fix Telegraf retention policy not found New version of influxdb use "autogen" as default retention policy name. Please see https://github.com/influxdata/influxdb/issues/3733 for more info. Change-Id: I8aeb47f60b3aeb022e0cd7aaac630d7cad5b0099 Closes-Bug: #1673914 --- ansible/roles/telegraf/templates/telegraf.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/telegraf/templates/telegraf.conf.j2 b/ansible/roles/telegraf/templates/telegraf.conf.j2 index 6b40f41c53..52364dec93 100644 --- a/ansible/roles/telegraf/templates/telegraf.conf.j2 +++ b/ansible/roles/telegraf/templates/telegraf.conf.j2 @@ -14,7 +14,7 @@ [[outputs.influxdb]] urls = [{% for host in groups['influxdb'] %}"{{ influxdb_proto }}://{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address']}}:{{ influxdb_http_port }}"{% if not loop.last %},{% endif %}{% endfor %}] database = "telegraf" # required - retention_policy = "default" + retention_policy = "autogen" write_consistency = "any" timeout = "5s" [[inputs.cpu]]