diff --git a/roles/haproxy/templates/haproxy.conf.j2 b/roles/haproxy/templates/haproxy.conf.j2 index 5a69b0e88328fa96fb89f945b0efbaf5780b1c89..7b0825f4ff954713dd10ee0ec0518e03b63cb357 100644 --- a/roles/haproxy/templates/haproxy.conf.j2 +++ b/roles/haproxy/templates/haproxy.conf.j2 @@ -47,6 +47,7 @@ defaults frontend prometheus-frontend bind localhost:8405 + option dontlog-normal http-request use-service prometheus-exporter if { path /metrics } frontend haproxy-frontend diff --git a/roles/probe/templates/telegraf/probe.conf.j2 b/roles/probe/templates/telegraf/probe.conf.j2 index d40a3b0362094241a5b00984cdfd7bfaf9723ef0..257bf12af48517ca05f815cba42f660e97ccbeb4 100644 --- a/roles/probe/templates/telegraf/probe.conf.j2 +++ b/roles/probe/templates/telegraf/probe.conf.j2 @@ -25,6 +25,9 @@ [inputs.http_response.tags] name = {{ http_url.name | default(http_url.url) | to_json }} + [inputs.http_response.headers] + User-Agent = "telegraf/{{ ansible_fqdn }}" + {% endfor %} [[inputs.ping]] diff --git a/roles/telegraf/templates/telegraf/global.conf.j2 b/roles/telegraf/templates/telegraf/global.conf.j2 index 9c6f0d2408a820d54254a529af624a46022362a6..db9d623b35a4ed36d367aa5e2ab50be0ac23a3e6 100644 --- a/roles/telegraf/templates/telegraf/global.conf.j2 +++ b/roles/telegraf/templates/telegraf/global.conf.j2 @@ -5,7 +5,7 @@ [agent] ## Override default hostname, if empty use os.Hostname() - hostname = {{ ansible_fqdn | to_json }} + hostname = "{{ ansible_fqdn }}" ###############################################################################