Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neutrinet
infra-ansible
Commits
350ae744
Commit
350ae744
authored
Aug 05, 2021
by
HgO
Browse files
add telegraf user-agent for http_response plugin
parent
fc3435ba
Pipeline
#396
passed with stage
in 1 minute and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
roles/probe/templates/telegraf/probe.conf.j2
View file @
350ae744
...
...
@@ -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]]
...
...
roles/telegraf/templates/telegraf/global.conf.j2
View file @
350ae744
...
...
@@ -6,7 +6,6 @@
[agent]
## Override default hostname, if empty use os.Hostname()
hostname = "{{ ansible_fqdn }}"
user_agent = "telegraf/{{ ansible_fqdn }}"
###############################################################################
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment