Collect chrony metrics with telegraf

Change-Id: I4cf1716c94e4fd808b66169348b07fa42e5b242e
Depends-on: I8fbef57b99122b8a093150f6ca1efdd33e032917
This commit is contained in:
Christian Berendt 2017-11-02 20:47:45 +01:00
parent 214866350a
commit 6d710f595c

View File

@ -42,6 +42,10 @@
[[inputs.system]] [[inputs.system]]
[[inputs.net]] [[inputs.net]]
interfaces = [] 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 %} {% if inventory_hostname in groups['haproxy'] and enable_haproxy | bool %}
[[inputs.haproxy]] [[inputs.haproxy]]
servers = ["{{ haproxy_proto }}://{{ haproxy_user }}:{{ haproxy_password }}@{{ api_interface_address }}:{{ haproxy_stats_port }}"] servers = ["{{ haproxy_proto }}://{{ haproxy_user }}:{{ haproxy_password }}@{{ api_interface_address }}:{{ haproxy_stats_port }}"]