I have a custom Trend metric with time, for example:
export let request_latency = new Trend("request_latency", true);
which reports in the k6 summary report as:
request_latency.....: avg=163.13ms min=136ms med=140ms max=482ms p(90)=144ms p(95)=245.39ms
When it is reported to Datadog, it is reported as a Guage with no time units in the metadata:
If it were just one of these Trends it would be easy to edit the metrics in Datadog from the screen above and add milliseconds as the unit. However, I have many of these metrics and to retroactively go through and add time units would be a huge pain.
Any suggestions would be greatly appreciated!
Additional Info:
K6 v0.36
Datadog Agent running with:
docker run -d \
--name datadog \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /proc/:/host/proc/:ro \
-v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
-e DD_SITE="datadoghq.com" \
-e DD_API_KEY=<> \
-e DD_DOGSTATSD_NON_LOCAL_TRAFFIC=1 \
-p 8125:8125/udp \
datadog/agent:latest