Replace old HAProxy metric with the new one
The haproxy_backend_current_session_rate
used to be exported by haproxy-exporter for HAProxy 1.x. The HAProxy 2.x exports it own built-in metrics and only exports the haproxy_backend_current_sessions
metric. As a result, we need to calculate the rate using the rate
function.
Edited by Milad Irannejad