forked from mtusi2026/mtusi2026lab6
lab6
This commit is contained in:
@@ -18,7 +18,7 @@ global
|
||||
defaults
|
||||
mode http
|
||||
log global
|
||||
option httplog
|
||||
log-format "%ST %Tt %b"
|
||||
option dontlognull
|
||||
timeout connect 1s
|
||||
timeout client 70s
|
||||
@@ -70,7 +70,11 @@ frontend http_front
|
||||
frontend stats_front
|
||||
# Только для оператора и доказательств: видно, какие реплики UP/DOWN и почему.
|
||||
bind *:8404
|
||||
# Built-in Prometheus exporter (HAProxy built with USE_PROMEX). The edge SLI
|
||||
# uses frontend response codes; health checks are not counted here.
|
||||
http-request use-service prometheus-exporter if { path /metrics }
|
||||
stats enable
|
||||
stats uri /stats
|
||||
stats refresh 2s
|
||||
monitor-uri /healthz
|
||||
no log
|
||||
|
||||
Reference in New Issue
Block a user