Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Haproxy HTTP Slowing Down" uses max total time #421

Open
janhorstmann opened this issue May 28, 2024 · 1 comment
Open

"Haproxy HTTP Slowing Down" uses max total time #421

janhorstmann opened this issue May 28, 2024 · 1 comment

Comments

@janhorstmann
Copy link

Hi,

currently the Haproxy HTTP Slowing Down rule uses the haproxy_backend_max_total_time_seconds metric, which is described as

# HELP haproxy_backend_max_total_time_seconds Maximum observed total request+response time (request+queue+connect+response+processing)

By that description the metric shows a monotonically increasing value of the, to this point, highest observed total time. The expression then calculates the average of this value. The resulting value does not show an average increase in request time as is stated in the description, since it may hold a peak value from long ago.

Maybe using

# HELP haproxy_backend_total_time_average_seconds Avg. total time for last 1024 successful connections.

would be a better metric for the intention of the alert rule? Although outliers tend to drive this value up. Using some sort of percentile would be better suited, but does not seem to be available in this case

@cervajs
Copy link
Contributor

cervajs commented Jul 24, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants