pvc-ansible/roles/pvc/templates/zookeeper/prometheus.j2

6 lines
268 B
Plaintext
Raw Normal View History

2023-12-10 12:39:35 -05:00
# Zookeeper Prometheus exporter arguments
# {{ ansible_managed }}
# Set the zk-hosts to our cluster local IP address as this is where Zookeeper listens
ARGS="-zk-hosts='{% for node in pvc_nodes if node.hostname == this_node %}{{ node.cluster_ip }}{% endfor %}:2181'"