Skip to content

Add max retries & timeout to grafana config - #1927

Merged
moshemorad merged 13 commits into
masterfrom
grafana_timeout
Apr 26, 2026
Merged

moshemorad merged 13 commits into
masterfrom
grafana_timeout

PR Comments

2b6ceba
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Apr 19, 2026 in 12m 46s

Code review found 1 important issue

Found 5 candidates, confirmed 2. See review comments for details.

Details

Severity Count
🔴 Important 1
🟡 Nit 0
🟣 Pre-existing 0
Severity File:Line Issue
🔴 Important holmes/plugins/toolsets/grafana/toolset_grafana.py:550-563 render_request_missing_retry_and_timeout_regression

Annotations

Check failure on line 563 in holmes/plugins/toolsets/grafana/toolset_grafana.py

See this annotation in the file changed.

@claude claude / Claude Code Review

render_request_missing_retry_and_timeout_regression

The PR correctly adds retry and timeout config to `_make_grafana_request`, but `_make_render_request` (used by `RenderPanel`/`RenderDashboard`) received only half the fix: the timeout now uses `config.timeout_seconds` (default 30s) instead of the previous hardcoded 60s, silently breaking users with slow renderers that take 31-60s, and no retry decorator was added despite `max_retries` being placed on `GrafanaConfig` with explicit justification that all Grafana toolsets should honor it. Fix by ad