Skip to content

Commit

Permalink
Update receiver.go (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
meenal-developer authored and bhogayatakb committed Jun 12, 2024
1 parent 581cb7b commit 4dfc70f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion receiver/datadogmetricreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4dfc70f

Please sign in to comment.