BUG/MINOR: promex: fix backend_agg_check_status
When a server is in maintenance, the check.status is no longer updated.
Therefore, we shouldn't consider check.status if the checks are not active. This
check was properly implemented in the haproxy_server_check_status metric, but
wasn't carried over to backend_agg_check_status, which introduced
inconsistencies between the two metrics.
[cf: This patch must be backported as far as 2.4]
(cherry picked from commit 3790eb4f855e8897277193e83e4a80ba3ee09b4d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 0a2b4042590ab95185b14a312d72cfd71efafd85)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit d0ee5d296ada8debbba6e2c2c4d7b2a8b5364549)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit c3ea4ef07d1d2731c710c48e3e2aee12c8dabfb0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed