From 6d710f595c8ac1cc36784b6d9bd5214813e59ecc Mon Sep 17 00:00:00 2001
From: Christian Berendt <berendt@betacloud-solutions.de>
Date: Thu, 2 Nov 2017 20:47:45 +0100
Subject: [PATCH] Collect chrony metrics with telegraf

Change-Id: I4cf1716c94e4fd808b66169348b07fa42e5b242e
Depends-on: I8fbef57b99122b8a093150f6ca1efdd33e032917
---
 ansible/roles/telegraf/templates/telegraf.conf.j2 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ansible/roles/telegraf/templates/telegraf.conf.j2 b/ansible/roles/telegraf/templates/telegraf.conf.j2
index 667c79271b..7b362d2ed5 100644
--- a/ansible/roles/telegraf/templates/telegraf.conf.j2
+++ b/ansible/roles/telegraf/templates/telegraf.conf.j2
@@ -42,6 +42,10 @@
 [[inputs.system]]
 [[inputs.net]]
   interfaces = []
+{% if inventory_hostname in groups['chrony'] and enable_chrony | bool %}
+[[inputs.chrony]]
+  dns_lookup = false
+{% endif %}
 {% if inventory_hostname in groups['haproxy'] and enable_haproxy | bool %}
 [[inputs.haproxy]]
   servers = ["{{ haproxy_proto }}://{{ haproxy_user }}:{{ haproxy_password }}@{{ api_interface_address }}:{{ haproxy_stats_port }}"]