grafana / k6

A modern load testing tool, using Go and JavaScript - https://k6.io
GNU Affero General Public License v3.0
24.8k stars 1.23k forks source link

K6 does not send metrics like k6.http_req_duration.avg to datadog statsd #2776

Open papatelst opened 1 year ago

papatelst commented 1 year ago

Brief summary

I am using the K6 datadog integration as mentioned here - https://k6.io/docs/results-visualization/datadog/ I am using docker container to send metrics to datadog from K6 run through teamcity. The issue is - k6.http_req_duration.avg in datadog UI is close to, but never the same as K6 build log. K6 is not sending certain metrics to Datadog. The details of the issue logged on K6 community website can be found here - https://community.k6.io/t/http-req-duration-wrong-datadog/440/8 see my datadog config below image I opened a ticket with datadog team here - https://help.datadoghq.com/hc/en-us/requests/954788 However, datadog team told me that this is a K6 issue where it is not sending certain metrics for example - k6.http_req_duration.avg:13930.0 in milliseconds. Here is a snapshot from their response. image Please fix this as it does not seem to be datadog agent issue.

k6 version

~0.37.0

OS

Linux

Docker version and image (if applicable)

No response

Steps to reproduce the problem

Run K6 tests using docker and send data to datadog using statsd agent. Compare metrics like k6.http_req_duration.avg in k6 build log and datadog UI timeseries graph

Expected behaviour

The value of the metric should be the same.

Actual behaviour

The values are close but never the same.

bucurrobert commented 1 year ago

We have the same issue in our organisation, any update with the bug?

LeonAdato commented 22 hours ago

Per @olegbespalov and @javaducky, this issue should probably be part of the StatsD project. Feel free to transfer it here:

https://github.com/LeonAdato/xk6-output-statsd