diff --git a/roles/haproxy/templates/haproxy_frontend.cfg.j2 b/roles/haproxy/templates/haproxy_frontend.cfg.j2 index d44d88a8d..001073db1 100644 --- a/roles/haproxy/templates/haproxy_frontend.cfg.j2 +++ b/roles/haproxy/templates/haproxy_frontend.cfg.j2 @@ -1,6 +1,13 @@ #jinja2: lstrip_blocks: True ## Frontend configuration +# Stats frontend for exporting prometheus metrics +frontend stats + bind 127.0.0.1:8404 + option http-use-htx + http-request use-service prometheus-exporter if { path /metrics } + + #-------------------------------------------------------------------- # frontend public ips # -------------------------------------------------------------------