HAProxy backend max active session warning
>>>
((sum by (backend) (
avg_over_time
(
haproxy_backend_current_sessions
[2m]) * 100) / sum by (backend) (
avg_over_time
(
haproxy_backend_limit_sessions
[2m])))) > 80
The rule calculates the average number of active sessions per backend over the last 2 minutes, divides it by the configured session limit for that backend, multiplies by 100, and fires when this percentage exceeds 80 %. Thus, if a backend’s current sessions are consistently above 80 % of its max limit, the alert triggers.
Exporters Used
Related Alerts
HAProxy HTTP slowing down
HAProxy HTTP slowing down
HAProxy backend connection errors
HAProxy backend connection errors
HAProxy backend down
HAProxy backend max active session > 80%
HAProxy down
HAProxy frontend security blocked requests
HAProxy frontend security blocked requests
HAProxy high HTTP 4xx error rate backend
HAProxy high HTTP 4xx error rate backend
HAProxy high HTTP 4xx error rate server
HAProxy high HTTP 4xx error rate server
HAProxy high HTTP 5xx error rate backend
HAProxy high HTTP 5xx error rate backend
HAProxy high HTTP 5xx error rate server
HAProxy high HTTP 5xx error rate server
HAProxy pending requests
HAProxy pending requests
HAProxy retry high
HAProxy retry high
HAProxy server connection errors
HAProxy server connection errors
HAProxy server down
HAProxy server healthcheck failure
HAProxy server healthcheck failure
HAProxy server response errors
HAProxy server response errors
HAproxy has no alive backends