fix: split telegraf_prometheus_listen into bind ip and port
All checks were successful
continuous-integration/drone/push Build is passing

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_template_files:
- telegraf/templates/*.conf.j2 - telegraf/templates/*.conf.j2
# @var telegraf_prometheus_listen:description: Address to listen for Prometheus. telegraf_prometheus_bind_ip: 127.0.0.1
telegraf_prometheus_listen: 127.0.0.1:9273 telegraf_prometheus_bind_port: 9273
# @var telegraf_prometheus_username:description: Username used by Prometheus. # @var telegraf_prometheus_username:description: Username used by Prometheus.
telegraf_prometheus_username: prometheus telegraf_prometheus_username: prometheus

View File

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