diff --git a/app/vmselect/main.go b/app/vmselect/main.go index 0e74e1d27..c2563f489 100644 --- a/app/vmselect/main.go +++ b/app/vmselect/main.go @@ -387,6 +387,12 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) bool { w.Header().Set("Content-Type", "application/json; charset=utf-8") fmt.Fprintf(w, "%s", `{"status":"success","data":{"groups":[]}}`) return true + case "prometheus/rules": + // Return dumb placeholder for https://prometheus.io/docs/prometheus/latest/querying/api/#rules + rulesRequests.Inc() + w.Header().Set("Content-Type", "application/json; charset=utf-8") + fmt.Fprintf(w, "%s", `{"status":"success","data":{"groups":[]}}`) + return true case "/api/v1/alerts": // Return dumb placehloder for https://prometheus.io/docs/prometheus/latest/querying/api/#alerts alertsRequests.Inc()