From 8a432d0c2af8e2390bc73c6637ed883293814d8d Mon Sep 17 00:00:00 2001 From: PeterYurkovich Date: Fri, 17 Oct 2025 14:24:48 -0400 Subject: [PATCH] fix: expose prometheus tenancy label path as a proxy --- pkg/server/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/server/server.go b/pkg/server/server.go index ee638e6d483..b3e598ec734 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -380,6 +380,7 @@ func (s *Server) HTTPHandler() (http.Handler, error) { targetAPIPath = prometheusProxyEndpoint + "/api/" tenancyQuerySourcePath = prometheusTenancyProxyEndpoint + "/api/v1/query" tenancyQueryRangeSourcePath = prometheusTenancyProxyEndpoint + "/api/v1/query_range" + tenancyLabelSourcePath = prometheusTenancyProxyEndpoint + "/api/v1/label/" tenancyRulesSourcePath = prometheusTenancyProxyEndpoint + "/api/v1/rules" tenancyTargetAPIPath = prometheusTenancyProxyEndpoint + "/api/" thanosProxy = proxy.NewProxy(s.ThanosProxyConfig) @@ -417,6 +418,7 @@ func (s *Server) HTTPHandler() (http.Handler, error) { // tenancy queries and query ranges have to be proxied via thanos handle(tenancyQuerySourcePath, handleThanosTenancyRequest) handle(tenancyQueryRangeSourcePath, handleThanosTenancyRequest) + handle(tenancyLabelSourcePath, handleThanosTenancyRequest) // tenancy rules have to be proxied via thanos handle(tenancyRulesSourcePath, handleThanosTenancyForRulesRequest)