HAProxy'yi Yapılandırma
Bir koşul ekleyerek /stats ve /metrics sayfalarını aynı frontend bölümünde kullanılabilir.
frontend stats
bind *:8404
option http-use-htx
http-request use-service prometheus-exporter if { path /metrics }
stats enable
stats uri /stats
stats refresh 10s/metrics adresine gidildiğinde sağlanan metrik bilgileri gözükür. Aynı zamanda /stats adresine giderek HAProxy istatistikler sayfasınada ulaşılabilir.

Last updated
Was this helpful?