diff --git a/internal/api/router.go b/internal/api/router.go index 5dfc8873f..07d7dc2b7 100644 --- a/internal/api/router.go +++ b/internal/api/router.go @@ -5568,6 +5568,12 @@ func (r *Router) handleMetricsHistory(w http.ResponseWriter, req *http.Request) return } + // Normalize resource types so frontend aliases match the SQLite store keys. + switch resourceType { + case "docker": + resourceType = "dockerContainer" + } + // Parse time range var duration time.Duration var stepSecs int64 = 0 // Default to no downsampling (use tier resolution)