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 }}"]