From 8349b0d5391b568589fcb935569126c0800cd926 Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Thu, 14 Nov 2024 11:00:37 -0700 Subject: [PATCH] fix: legacy label endpoint route --- pkg/querier/queryrange/roundtrip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/querier/queryrange/roundtrip.go b/pkg/querier/queryrange/roundtrip.go index af0d57f1c0c62..61a9d519b3bac 100644 --- a/pkg/querier/queryrange/roundtrip.go +++ b/pkg/querier/queryrange/roundtrip.go @@ -523,7 +523,7 @@ func getOperation(path string) string { case path == "/loki/api/v1/detected_fields": return DetectedFieldsOp case strings.HasSuffix(path, "/values"): - if strings.HasPrefix(path, "/loki/api/v1/label") || strings.HasPrefix(path, "/prom/label") { + if strings.HasPrefix(path, "/loki/api/v1/label") || strings.HasPrefix(path, "/api/prom/label") { return LabelNamesOp }