'GET /grid/metric-query' API fails when the Prometheus service is stopped
Applies to
StorageGRID
Issue
When Prometheus service is stopped, the
GET /grid/metric-query
API request fails.Example of
nginx-gw\access.log
:- Abnormal:
10.11.22.33 - - [17/Dec/2024:09:50:06 +0000] "GET /api/v2/grid/metric-query?query=storagegrid_tenant_usage_data_bytes{instance=\x22admin-node\x22} HTTP/1.1" 499 0 "-" "curl/x.xx.0"
unix: - - [17/Dec/2024:09:50:06 +0000] "GET /api/v2/grid/metric-query?query=storagegrid_tenant_usage_data_bytes{instance=\x22admin-node\x22} HTTP/1.1" 499 0 "-" "curl/x.xx.0"
- Normal:
unix: - - [17/Dec/2024:10:00:04 +0000] "GET /api/v2/grid/metric-query?query=storagegrid_tenant_usage_data_bytes{instance=\x22admin-node\x22} HTTP/1.1" 200 1176440 "-" "curl/x.xx.0"
10.11.22.33 - - [17/Dec/2024:10:00:04 +0000] "GET /api/v2/grid/metric-query?query=storagegrid_tenant_usage_data_bytes{instance=\x22admin-node\x22} HTTP/1.1" 200 1176440 "-" "curl/x.xx.0"