mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
app/vminsert: accept data on /insert/<accountID>/prometheus/api/v1/write
This commit is contained in:
parent
c3d73e347c
commit
31d6566aff
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
switch p.Suffix {
|
switch p.Suffix {
|
||||||
case "prometheus/", "prometheus":
|
case "prometheus/", "prometheus", "prometheus/api/v1/write":
|
||||||
prometheusWriteRequests.Inc()
|
prometheusWriteRequests.Inc()
|
||||||
if err := prometheus.InsertHandler(at, r, int64(*maxInsertRequestSize)); err != nil {
|
if err := prometheus.InsertHandler(at, r, int64(*maxInsertRequestSize)); err != nil {
|
||||||
prometheusWriteErrors.Inc()
|
prometheusWriteErrors.Inc()
|
||||||
|
|
Loading…
Reference in a new issue