grafana / xk6-output-influxdb

k6 extension to output real-time test metrics to an InfluxDB 2.x database.
Apache License 2.0
65 stars 33 forks source link

Build command in command prompt seems to fail. #24

Closed NCDuneZerna closed 1 year ago

NCDuneZerna commented 1 year ago

When I run the command

K6_INFLUXDB_ORGANIZATION=myorg \ K6_INFLUXDB_BUCKET=mybucket \ K6_INFLUXDB_TOKEN=mytoken \ ./k6 run -o xk6-influxdb=http://localhost:8086 myscript.js

I get this error message:

K6_INFLUXDB_ORGANIZATION=myorg : The term 'K6_INFLUXDB_ORGANIZATION=myorg' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

K6_INFLUXDB_BUCKET=mybucket : The term 'K6_INFLUXDB_BUCKET=mybucket' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:2 char:1

K6_INFLUXDB_TOKEN=mytoken : The term 'K6_INFLUXDB_TOKEN=mytoken' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and t ry again. At line:3 char:1

javaducky commented 1 year ago

This command was written on a Mac. I believe on Windows, the line continuation character may be a "`" or "^" depending upon your exact setup.

Closing this issue for now, feel free to update if problems persist.