The script now exits loudly on non-2xx, but if Grafana is not running the default curl connection timeout is very long (several minutes on some systems). Adding -m 10 --connect-timeout 5 would make the failure fast and the error message actionable: curl: (7) Failed to connect to localhost port 3000. This matches the behaviour developers would expect from a CLI tool.
Follow-up from #152
The script now exits loudly on non-2xx, but if Grafana is not running the default curl connection timeout is very long (several minutes on some systems). Adding
-m 10 --connect-timeout 5would make the failure fast and the error message actionable:curl: (7) Failed to connect to localhost port 3000. This matches the behaviour developers would expect from a CLI tool.Follow-up from #152