fix: split telegraf_prometheus_listen into bind ip and port
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2021-06-03 22:34:10 +02:00
parent e68d73a85f
commit 64beb74668
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 3 additions and 3 deletions

View File

@ -60,8 +60,8 @@ telegraf_omit_hostname: False
telegraf_template_files:
- telegraf/templates/*.conf.j2
# @var telegraf_prometheus_listen:description: Address to listen for Prometheus.
telegraf_prometheus_listen: 127.0.0.1:9273
telegraf_prometheus_bind_ip: 127.0.0.1
telegraf_prometheus_bind_port: 9273
# @var telegraf_prometheus_username:description: Username used by Prometheus.
telegraf_prometheus_username: prometheus

View File

@ -36,7 +36,7 @@
{% endif %}
[[outputs.prometheus_client]]
listen = "{{ telegraf_prometheus_listen }}"
listen = "{{ telegraf_prometheus_bind_ip }}:{{ telegraf_prometheus_bind_port }}"
basic_username = "{{ telegraf_prometheus_username }}"
basic_password = "{{ telegraf_prometheus_password }}"
ip_range = []