configpolicy/roles/haproxy/templates/stats.cfg.j2

11 lines
272 B
Django/Jinja

{% if haproxy_enable_stats %}
frontend stats
bind *:{{ haproxy_stats_port }}
http-request use-service prometheus-exporter if { path /metrics }
stats enable
stats uri /stats
stats refresh 10s
{% else %}
# HAProxy stats frontend is disabled.
{% endif %}