Skip to content

Commit a6ee6d1

Browse files
ardentperfmnencia
andauthored
fix: disable Grafana Live to prevent port-forward timeouts (#49)
Disable Grafana Live feature (max_connections=0) to prevent WebSocket connection buildup that causes kubectl port-forward timeout errors. Firefox was creating multiple persistent connections that exhausted the port-forward stream multiplexer. This caused grafana to quickly become unresponsive in the browser. Disabling Grafana Live fixes the issue. Docs: https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#live Signed-off-by: Jeremy Schneider <[email protected]> Signed-off-by: Marco Nenciarini <[email protected]> Co-authored-by: Marco Nenciarini <[email protected]>
1 parent 3b2abb0 commit a6ee6d1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

monitoring/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ You can find the dashboard under `Home > Dashboards > grafana > CloudNativePG`.
6060

6161
![dashboard](image.png)
6262

63+
> **Note:** Grafana Live is disabled (`max_connections: 0`) to prevent
64+
> WebSocket connection buildup that can exhaust kubectl port-forward
65+
> streams and cause timeout errors. This means real-time dashboard
66+
> streaming is unavailable, but all other Grafana features work normally
67+
> when accessed via port-forward.
68+
6369
## PodMonitor
6470

6571
To enable Prometheus to scrape metrics from your PostgreSQL pods, you must

monitoring/grafana/grafana_instance.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ spec:
1111
security:
1212
admin_user: admin
1313
admin_password: admin
14+
live:
15+
max_connections: "0"
1416
deployment:
1517
spec:
1618
template:

0 commit comments

Comments
 (0)