diff --git a/ansible/roles/telegraf/templates/telegraf.conf.j2 b/ansible/roles/telegraf/templates/telegraf.conf.j2 index c61b4682ea..2a406ebb4e 100644 --- a/ansible/roles/telegraf/templates/telegraf.conf.j2 +++ b/ansible/roles/telegraf/templates/telegraf.conf.j2 @@ -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]] diff --git a/releasenotes/notes/bug-1867179-9e31460ba53757d4.yaml b/releasenotes/notes/bug-1867179-9e31460ba53757d4.yaml new file mode 100644 index 0000000000..d1eb145a36 --- /dev/null +++ b/releasenotes/notes/bug-1867179-9e31460ba53757d4.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes failure to deploy telegraf with monitoring of zookeeper due + to wrong variable being referenced. + `LP#1867179 `__