Hi,
Based on this article it’s possible to set /metrics
to enable prometheus fetch, but it’s not possible to secure it with an auth.
Is there a way to do it ? With stats auth ...
the stats page is protected but not /metrics
one
Here’s my config for the stats
frontend stats
mode http
bind *:9000 ssl crt /usr/local/etc/certs/
stats enable
stats auth prometheus:1234
stats uri /stats
stats refresh 10s
stats admin if LOCALHOST
http-request use-service prometheus-exporter if { path /metrics }
Version: HAProxy version 2.8.3-86e043a, released 2023/09/07