Fix telegraf with zookeeper (wrong port variable reference)

Change-Id: I29f65c83b9bd45e463d868cf9a55611f33fe3177
Closes-bug: #1867179
This commit is contained in:
Radosław Piliszek 2020-03-12 19:15:56 +01:00
parent 2a2ce059dc
commit 939b6f7958
2 changed files with 7 additions and 1 deletions

View File

@ -83,7 +83,7 @@
{% endif %}
{% if inventory_hostname in groups['zookeeper'] and enable_zookeeper | bool %}
[[inputs.zookeeper]]
servers = ["{{ api_interface_address | put_address_in_context('url') }}:{{ zookeeper_port }}"]
servers = ["{{ api_interface_address | put_address_in_context('url') }}:{{ zookeeper_client_port }}"]
{% endif %}
{% if inventory_hostname in groups['kafka'] and enable_kafka | bool %}
[[inputs.kafka_consumer]]

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes failure to deploy telegraf with monitoring of zookeeper due
to wrong variable being referenced.
`LP#1867179 <https://launchpad.net/bugs/1867179>`__