haproxy: align v1 and v2 HAProxy backend max active session > 80% alerts (#475)

* haproxy: align v1 and v2 max current session alerts

* fix: remove non-existing label

---------

Co-authored-by: Riccardo Cannella <riccardo.cannella@reevo.it>
This commit is contained in:
Riccardo Cannella 2025-09-15 15:03:44 +02:00 committed by GitHub
parent b158ebb551
commit 7832e01082
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1943,8 +1943,8 @@ groups:
query: (sum by (proxy) (rate(haproxy_server_connection_errors_total[1m]))) > 100
severity: critical
- name: HAProxy backend max active session > 80%
description: Session limit from backend {{ $labels.proxy }} to server {{ $labels.server }} reached 80% of limit - {{ $value | printf "%.2f"}}%
query: ((haproxy_server_max_sessions >0) * 100) / (haproxy_server_limit_sessions > 0) > 80
description: Session limit from backend {{ $labels.proxy }} reached 80% of limit - {{ $value | printf "%.2f"}}%
query: ((haproxy_backend_current_sessions >0) * 100) / (haproxy_backend_limit_sessions > 0) > 80
severity: warning
for: 2m
- name: HAProxy pending requests