Skip to content

Commit

Permalink
Haproxy: Add prometheus exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Dec 11, 2023
1 parent 6fa4c59 commit f367f4d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/haproxy/templates/haproxy_frontend.cfg.j2
Original file line number Diff line number Diff line change
@@ -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
# -------------------------------------------------------------------
Expand Down

0 comments on commit f367f4d

Please sign in to comment.