{% 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 %}