Merge "Modify the configuration file of telegraf"
This commit is contained in:
commit
ae7fe6bdbb
@ -24,8 +24,10 @@
|
|||||||
[[inputs.disk]]
|
[[inputs.disk]]
|
||||||
ignore_fs = ["tmpfs", "devtmpfs"]
|
ignore_fs = ["tmpfs", "devtmpfs"]
|
||||||
[[inputs.diskio]]
|
[[inputs.diskio]]
|
||||||
|
{% if inventory_hostname in groups['influxdb'] and enable_influxdb | bool %}
|
||||||
[[inputs.influxdb]]
|
[[inputs.influxdb]]
|
||||||
urls = [{% for host in groups['influxdb'] %}"{{ influxdb_proto }}://{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address']}}:{{ influxdb_http_port }}/debug/vars"{% if not loop.last %},{% endif %}{% endfor %}]
|
urls = ["{{ influxdb_proto }}://{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ influxdb_http_port }}/debug/vars"]
|
||||||
|
{% endif %}
|
||||||
[[inputs.kernel]]
|
[[inputs.kernel]]
|
||||||
[[inputs.mem]]
|
[[inputs.mem]]
|
||||||
[[inputs.processes]]
|
[[inputs.processes]]
|
||||||
|
Loading…
Reference in New Issue
Block a user