Commit 9f7c17cf authored by HgO's avatar HgO
Browse files

Merge branch '57-masquer-les-logs-lies-aux-health-check' into 'main'

Resolve "Masquer les logs liés aux health check"

Closes #57

See merge request Neutrinet/infra!67
parents ad5bc9a9 350ae744
Pipeline #397 passed with stage
in 1 minute and 30 seconds
...@@ -47,6 +47,7 @@ defaults ...@@ -47,6 +47,7 @@ defaults
frontend prometheus-frontend frontend prometheus-frontend
bind localhost:8405 bind localhost:8405
option dontlog-normal
http-request use-service prometheus-exporter if { path /metrics } http-request use-service prometheus-exporter if { path /metrics }
frontend haproxy-frontend frontend haproxy-frontend
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
[inputs.http_response.tags] [inputs.http_response.tags]
name = {{ http_url.name | default(http_url.url) | to_json }} name = {{ http_url.name | default(http_url.url) | to_json }}
[inputs.http_response.headers]
User-Agent = "telegraf/{{ ansible_fqdn }}"
{% endfor %} {% endfor %}
[[inputs.ping]] [[inputs.ping]]
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
[agent] [agent]
## Override default hostname, if empty use os.Hostname() ## Override default hostname, if empty use os.Hostname()
hostname = {{ ansible_fqdn | to_json }} hostname = "{{ ansible_fqdn }}"
############################################################################### ###############################################################################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment