Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for additional labels when doing prometheus remote writes #3716

Open
amarao opened this issue Apr 25, 2024 · 1 comment
Open
Labels

Comments

@amarao
Copy link

amarao commented Apr 25, 2024

Feature Description

Currently, when k6 is doing remote writes into Prometheus, it does add a single label 'scenario'. When multiple k6 copies are run from multiple servers, they don't work together with a single Prometheus server.

It would be nice to be able to distinct different jobs in the Prometheus with different labels.

Suggested Solution (optional)

Add an environment variable (e.g. K6_PROMETHEUS_REMOTE_LABELS="environment=production,server=srv1") to specify list of labels to be set on the series send to the Prometheus.

Any other solution (e.g. configuration within js file) will solve the problem too.

@amarao amarao added the feature label Apr 25, 2024
@joanlopez joanlopez removed the triage label May 13, 2024
@joanlopez joanlopez removed their assignment May 13, 2024
@joanlopez
Copy link
Contributor

Hi @amarao,

Thanks for the feature request, we'll consider it within the team during one of our following issues review, as it goes through the pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants