add "/api/v1/push" to request handler (#5990)

Co-authored-by: Eugene Ma <eugene.ma@airbnb.com>
Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
This commit is contained in:
Eugene Ma 2024-04-03 16:10:24 -07:00 committed by Aliaksandr Valialkin
parent fc4a5cc022
commit 7459a197c6
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -264,7 +264,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
path = strings.TrimSuffix(path, "/")
}
switch path {
case "/prometheus/api/v1/write", "/api/v1/write":
case "/prometheus/api/v1/write", "/api/v1/write", "/api/v1/push":
if common.HandleVMProtoServerHandshake(w, r) {
return true
}