diff --git a/app/vmselect/main.go b/app/vmselect/main.go index 366e1e9e7..2f8dbe10d 100644 --- a/app/vmselect/main.go +++ b/app/vmselect/main.go @@ -439,6 +439,11 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) bool { } w.WriteHeader(http.StatusNoContent) return true + case "/api/v1/status/buildinfo": + buildInfoRequests.Inc() + w.Header().Set("Content-Type", "application/json") + fmt.Fprintf(w, "%s", `{"status":"success","data":{}}`) + return true default: return false } @@ -554,5 +559,6 @@ var ( rulesRequests = metrics.NewCounter(`vm_http_requests_total{path="/api/v1/rules"}`) alertsRequests = metrics.NewCounter(`vm_http_requests_total{path="/api/v1/alerts"}`) metadataRequests = metrics.NewCounter(`vm_http_requests_total{path="/api/v1/metadata"}`) + buildInfoRequests = metrics.NewCounter(`vm_http_requests_total{path="/api/v1/buildinfo"}`) queryExemplarsRequests = metrics.NewCounter(`vm_http_requests_total{path="/api/v1/query_exemplars"}`) )