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

6 lines
268 B
Django/Jinja

# 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'"