You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am in a situation where I can not set K6_PROMETHEUS_RW_SERVER_URL environment variable (nor any other env var) cause I do not control the invocation of k6 run .... All I can do is submit the script.js and specify which extensions should be loaded, thats all. So xk6-output-prometheus-remote does get loaded but then sends metrics to the default of localhost:9090 which fails and I cant make that port open either.
Is there a way to specify the prometheus connectivity settings (ServerURL, user, password) directly in options{}?
The text was updated successfully, but these errors were encountered:
Playing some more I find that I also need K6_PROMETHEUS_RW_STALE_MARKERS=true, K6_PROMETHEUS_RW_PUSH_INTERVAL=60 and K6_PROMETHEUS_RW_TREND_STATS='p(95),max' to get meaningful metrics for graphing my case.
Being able to set all these environment options from the script options{} would be really great.
Hello,
I am in a situation where I can not set
K6_PROMETHEUS_RW_SERVER_URL
environment variable (nor any other env var) cause I do not control the invocation ofk6 run ...
. All I can do is submit thescript.js
and specify which extensions should be loaded, thats all. So xk6-output-prometheus-remote does get loaded but then sends metrics to the default oflocalhost:9090
which fails and I cant make that port open either.Is there a way to specify the prometheus connectivity settings (ServerURL, user, password) directly in
options{}
?The text was updated successfully, but these errors were encountered: