HAProxy backend max active session warning
HAproxy backend {{ $labels.fqdn }}/{{ $labels.backend }} is reaching session limit (> 80%).
>>>
((sum by (backend) (
avg_over_time
(
[2m]) * 100) / sum by (backend) (
avg_over_time
(
[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.
Get Alert✕
Download
Copy to Clipboard