Do I need subscription of k6 to show tags in data dog? I am running script in local and seding it to datadog but its doenst show tsg

I am running datadog with -

DOCKER_CONTENT_TRUST=1
docker run -d --network bridge
–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=MY_KEY
-e DD_TAGS=“querytag”
-e DD_DOGSTATSD_NON_LOCAL_TRAFFIC=1
-p 8125:8125/udp
datadog/agent:latest

My Script -

const response = http.post(“url”, query, {
headers: headers,
tags: { querytag: “GetUserQuery” },
});

My Cmd -

K6_STATSD_ENABLE_TAGS=true k6 run -e ENV=staging -e PR=pr-164 --out statsd dist/sanity.spec.js

hi @akankshamitrc

To run them and see them in Datadog you need to update your query.

K6_STATSD_ENABLE_TAGS=true K6_STATSD_ADDR=datadog:8125 k6 run -e ENV=staging -e PR=pr-164 --out statsd dist/sanity.spec.js

Let me know if this works for you!

1 Like