Skip to content

Commit

Permalink
Merge pull request #458 from junotx/label
Browse files Browse the repository at this point in the history
fix label values api
  • Loading branch information
benjaminhuo authored Feb 2, 2024
2 parents d314e58 + 9572ab0 commit d0e5d4e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/monitoring-gateway/handler.go
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ const (
epQueryRange = "/query_range"
epSeries = "/series"
epLabels = "/labels"
epLabelValues = "/label/*"
epLabelValues = "/label/*path"
epReceive = "/receive"
epRules = "/rules"
epAlerts = "/alerts"
@@ -102,8 +102,12 @@ func (h *Handler) addTenantRemoteWriteHandler() {
}

func (h *Handler) addGlobalProxyHandler() {
h.router.Path(apiGlobalPrefix + epReceive).HandlerFunc(h.remoteWriteHander.ServeHTTP)
h.router.PathPrefix(apiGlobalPrefix).HandlerFunc(h.queryProxy.ServeHTTP)
if h.remoteWriteHander != nil {
h.router.Path(apiGlobalPrefix + epReceive).HandlerFunc(h.remoteWriteHander.ServeHTTP)
}
if h.queryProxy != nil {
h.router.PathPrefix(apiGlobalPrefix).HandlerFunc(h.queryProxy.ServeHTTP)
}
}

func (h *Handler) AppendQueryUIHandler(logger log.Logger, reg *prometheus.Registry) {

0 comments on commit d0e5d4e

Please sign in to comment.