haproxy options for prometheus.

This commit is contained in:
Andrea Dell'Amico 2022-02-02 18:37:09 +01:00
parent af1dc2ef40
commit 2ccf6a6978
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ peers mypeers
listen stats
bind *:{{ haproxy_admin_port }} ssl crt {{ haproxy_cert_dir }} alpn h2,http/1.1
mode http
option http-use-htx
http-request use-service prometheus-exporter if { path /metrics }
option httplog
stats enable
stats uri /