app/vminsert: accept data on /insert/<accountID>/prometheus/api/v1/write

This commit is contained in:
Aliaksandr Valialkin 2019-06-03 18:17:25 +03:00
parent c3d73e347c
commit 31d6566aff

View file

@ -97,7 +97,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
}
switch p.Suffix {
case "prometheus/", "prometheus":
case "prometheus/", "prometheus", "prometheus/api/v1/write":
prometheusWriteRequests.Inc()
if err := prometheus.InsertHandler(at, r, int64(*maxInsertRequestSize)); err != nil {
prometheusWriteErrors.Inc()