mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
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:
parent
fc4a5cc022
commit
7459a197c6
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
|
||||||
path = strings.TrimSuffix(path, "/")
|
path = strings.TrimSuffix(path, "/")
|
||||||
}
|
}
|
||||||
switch 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) {
|
if common.HandleVMProtoServerHandshake(w, r) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue