From 4dfc70ffa6d2448a186a5ecd1ff1ef2aa4e83ba6 Mon Sep 17 00:00:00 2001 From: Meenal Mathur Date: Sat, 25 May 2024 13:26:27 +0530 Subject: [PATCH] Update receiver.go (#61) --- receiver/datadogmetricreceiver/receiver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/datadogmetricreceiver/receiver.go b/receiver/datadogmetricreceiver/receiver.go index c3d4256b694a..2ebc72c1dd92 100644 --- a/receiver/datadogmetricreceiver/receiver.go +++ b/receiver/datadogmetricreceiver/receiver.go @@ -233,7 +233,7 @@ func (ddr *datadogmetricreceiver) handleV2Series(w http.ResponseWriter, req *htt var err error // is the Datadog agent using V1 endpoint ? Datadog V1 uses json input // and slightly different payload structure. - if strings.HasPrefix(req.URL.Path, "/datadog/api/v1") { + if strings.HasPrefix(req.URL.Path, "/api/v1") { var v1Metrics metricsV1.MetricsPayload err = json.Unmarshal(body, &v1Metrics) if err != nil {