From 36b57c65e5dcab1fe138314926e1b98868e5b643 Mon Sep 17 00:00:00 2001 From: hieule Date: Thu, 14 May 2026 13:47:02 +0100 Subject: [PATCH] Fix Grafana dashboard query timeout For VM Power & Carbon dashboard, when the time range is more than 2 days, the dashboard error 504 Gateway Timeout Long running Prometheus queries were failing after 10s before reaching the datasource timeout configuration. So increase HAProxy timeout to allow the queries to complete. --- grafana_monitoring/roles/haproxy/templates/haproxy.cfg.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/grafana_monitoring/roles/haproxy/templates/haproxy.cfg.j2 b/grafana_monitoring/roles/haproxy/templates/haproxy.cfg.j2 index 7c18d76c..eff54434 100644 --- a/grafana_monitoring/roles/haproxy/templates/haproxy.cfg.j2 +++ b/grafana_monitoring/roles/haproxy/templates/haproxy.cfg.j2 @@ -3,10 +3,10 @@ global defaults mode http - timeout client 10s - timeout connect 5s - timeout server 10s - timeout http-request 10s + timeout client 120s + timeout connect 10s + timeout server 120s + timeout http-request 120s log global frontend stats