app/vmagent: follow-up after 4583ed23a8

This commit is contained in:
Aliaksandr Valialkin 2022-06-13 09:54:11 +03:00
parent 4583ed23a8
commit 1041f395cc
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -464,6 +464,11 @@ func processMultitenantRequest(w http.ResponseWriter, r *http.Request, path stri
w.Header().Set("Content-Type", "application/json")
fmt.Fprintf(w, `{}`)
return true
case "datadog/api/v1/metadata":
datadogMetadataRequests.Inc()
w.Header().Set("Content-Type", "application/json")
fmt.Fprintf(w, `{}`)
return true
default:
httpserver.Errorf(w, r, "unsupported multitenant path suffix: %q", p.Suffix)
return true