Commit 350ae744 authored by HgO's avatar HgO
Browse files

add telegraf user-agent for http_response plugin

parent fc3435ba
Pipeline #396 passed with stage
in 1 minute and 33 seconds
......@@ -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]]
......
......@@ -6,7 +6,6 @@
[agent]
## Override default hostname, if empty use os.Hostname()
hostname = "{{ ansible_fqdn }}"
user_agent = "telegraf/{{ 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