diff --git a/app/vminsert/main.go b/app/vminsert/main.go index db65643586..57e79200b1 100644 --- a/app/vminsert/main.go +++ b/app/vminsert/main.go @@ -189,6 +189,9 @@ func requestHandler(w http.ResponseWriter, r *http.Request) bool { return true } + if strings.HasPrefix(p.Suffix, "datadog/") { + p.Suffix = strings.TrimSuffix(p.Suffix, "/") + } switch p.Suffix { case "prometheus/", "prometheus", "prometheus/api/v1/write": prometheusWriteRequests.Inc()