diff --git a/app/vminsert/main.go b/app/vminsert/main.go index 7e641b088..68b3edb44 100644 --- a/app/vminsert/main.go +++ b/app/vminsert/main.go @@ -107,6 +107,9 @@ func RequestHandler(w http.ResponseWriter, r *http.Request) bool { defer requestDuration.UpdateDuration(startTime) path := strings.Replace(r.URL.Path, "//", "/", -1) + if strings.HasPrefix(path, "/datadog") { + path = strings.TrimSuffix(path, "/") + } if strings.HasPrefix(path, "/static") { staticServer.ServeHTTP(w, r) return true