Skip to content

Optional System Tags not passed to Influxdb and Default System Tags disabled #2668

@perrinj3

Description

@perrinj3

Brief summary

When the System Tags vu and iter are specified in a K6 test either from the CLI or in the config.json the tags do not appear in the Influxdb output. Also specifying these tags completely disables all the default system tags.
If the output is a JSON file the optional system tags do appear as expected.

k6 version

v0.39

OS

windows

Docker version and image (if applicable)

No response

Steps to reproduce the problem

Specify system tags vu and iter in the config file like this
"systemTags": ["iter","vu"],

or from CLI like this
--system-tags vu --system-tags iter

run k6 with option
-- out influxdb=http://influxdb host

Expected behaviour

{"type":"Metric","data":{"name":"http_reqs","type":"counter","contains":"default","tainted":null,"thresholds":[],"submetrics":null},"metric":"http_reqs"}
{"type":"Point","data":{"time":"2022-08-30T15:09:27.2544213+10:00","value":1,"tags":{"type":"API Call","iter":"0","vu":"1","group":"Login","name":"name3","scenario":"Smoke Test1"}},"metric":"http_reqs"}
{"type":"Metric","data":{"name":"http_req_duration","type":"trend","contains":"time","tainted":null,"thresholds":[],"submetrics":null},"metric":"http_req_duration"}
{"type":"Point","data":{"time":"2022-08-30T15:09:27.2544213+10:00","value":2.0133,"tags":{"group":"Login","name":"name3","scenario":"Smoke Test1","type":"API Call","iter":"0","vu":"1"}},"metric":"http_req_duration"}
{"type":"Metric","data":{"name":"http_req_blocked","type":"trend","contains":"time","tainted":null,"thresholds":[],"submetrics":null},"metric":"http_req_blocked"}
{"type":"Point","data":{"time":"2022-08-30T15:09:27.2544213+10:00","value":2.9932,"tags":{"group":"Login","name":"name3","scenario":"Smoke Test1","type":"API Call","iter":"0","vu":"1"}},"metric":"http_req_blocked"}

Actual behaviour

optional system tags iter and vu do not appear as tags in the Influxdb output and the default system tags are all suppressed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions