Wrong percentile values for metrics shown in Datadog

Hi Team, Any update on these issues

Still, we didn’t get exact k6 result values in Datadog
Can you look into it?

Hey @Naveen,
the status regarding Statsd output is tracked in the issues you’ve linked. There isn’t any update at the moment.

Currently, the priority for us regarding metrics output is to add support for OpenTelemetry as it supports several metrics backends.

I hope it helps.

can we expect that issue to be resolved in 2025 Q1

Hey @Naveen,
I’ve posted here on a similar question Statsd seems to be dropping metrics probably because of UDP · Issue #2044 · grafana/k6 · GitHub.

Let me know if it helps.

Hi @codebien while running a load test I’m getting the following errors in the console and I couldn’t able to see the data in datadog

WARN[0003] Couldn’t send 4 out of 35 metrics. Enable verbose logging with --verbose to see individual errors output=statsd
ERRO[0003] Couldn’t flush a batch error=“write udp 127.0.0.1:50826->127.0.0.1:8125: write: connection refused” output=statsd

Note: Fyi…, I have installed k6 and datadog agent successfully
can you please let me know how I can resolve this issue

Issue resolved by following this document and command

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' datadog```

https://github.com/grafana/k6-operator/issues/63#:~:text=echo%20%22%3A%3Aset%2Doutput%20name%3DddIP%3A%3A%24(%20docker%20inspect%20%2Df%20%27%7B%7Brange%20.NetworkSettings.Networks%7D%7D%7B%7B.IPAddress%7D%7D%7B%7Bend%7D%7D%27%20datadog%20)%22

HI @codebien,

Based on the [document](https:// Statsd seems to be dropping metrics probably because of UDP · Issue #2044 · grafana/k6 · GitHub) I have updated k6 version to v0.53.0. then I executed a script but I’m unable to export the results to Datadog
can you please help me with what I did wrong on this?
Can you please tell me how to configure opentelementry and send k6 metrics to data to Datadog?

This is the following command I tried and got the below error
command:

K6_OTEL_HTTP_EXPORTER_ENDPOINT=http://localhost:4318 K6_OTEL_METRIC_PREFIX=k6_ k6 run --tag test-id=Perf123 -o experimental-opentelemetry scripts/loadtest.js

error message

failed to upload metrics: context deadline exceeded: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:4317: connect: connection refused"

HI @codebien,

Based on the [document](https:// Statsd seems to be dropping metrics probably because of UDP · Issue #2044 · grafana/k6 · GitHub) I have updated k6 version to v0.53.0. then I executed a script but I’m unable to export the results to Datadog
can you please help me with what I did wrong on this?
Can you please tell me how to configure opentelementry and send k6 metrics to data to Datadog?

This is the following command I tried and got the below error
command:

K6_OTEL_HTTP_EXPORTER_ENDPOINT=http://localhost:4318 K6_OTEL_METRIC_PREFIX=k6_ k6 run --tag test-id=Perf123 -o experimental-opentelemetry scripts/loadtest.js

error message

failed to upload metrics: context deadline exceeded: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:4317: connect: connection refused"

Hey @Naveen,
Can you open a dedicated topic, please? Your question is related but it isn’t the same issue as the original post.

Thanks :bowing_man:

Sure @codebian

https://community.grafana.com/t/configure-k6-to-otlp-and-send-metrics-to-datado/129538