app/vmselect: fix the build after fb8889820aba710508033cbf6826eb63a357532a

This commit is contained in:
Aliaksandr Valialkin 2023-05-08 17:28:36 -07:00
parent c6511bc2d0
commit 1a7794735e
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -631,13 +631,15 @@ func selectHandler(qt *querytracer.Tracer, startTime time.Time, w http.ResponseW
promrelabelMetricRelabelDebugRequests.Inc()
metric := r.FormValue("metric")
relabelConfigs := r.FormValue("relabel_configs")
promrelabel.WriteMetricRelabelDebug(w, "", metric, relabelConfigs, nil)
format := r.FormValue("format")
promrelabel.WriteMetricRelabelDebug(w, "", metric, relabelConfigs, format, nil)
return true
case "prometheus/target-relabel-debug", "target-relabel-debug":
promrelabelTargetRelabelDebugRequests.Inc()
metric := r.FormValue("metric")
relabelConfigs := r.FormValue("relabel_configs")
promrelabel.WriteTargetRelabelDebug(w, "", metric, relabelConfigs, nil)
format := r.FormValue("format")
promrelabel.WriteTargetRelabelDebug(w, "", metric, relabelConfigs, format, nil)
return true
case "prometheus/expand-with-exprs", "expand-with-exprs":
expandWithExprsRequests.Inc()