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

InfluxDB integration with multiple load agents #36

Open
besessener opened this issue Oct 4, 2024 · 2 comments
Open

InfluxDB integration with multiple load agents #36

besessener opened this issue Oct 4, 2024 · 2 comments
Labels
question Further information is requested

Comments

@besessener
Copy link

Let's say I am running K6, the very same script, on multiple load agents at the same time. Is there a way to collect the influxDB measurements of all agents, aggregate it to one so that in Grafana I am able to see the real number of VUs for example?

@mstoykov
Copy link
Contributor

I guess the problem you are seeing (as you haven't said whether you tried it or not) is that some metrics (Gauge) are getting only the values of one of the load generators.

This is as k6 doesn't automatically set additional tags (as it doesn't know what htey should be) so that samples from different laod generators can be identified.

You can add --tag generator=2 with different values (and tag name for that matter) so you that influxdb doesn't aggregate them and you can query them all. You likely will need to change some of the dashboards as well.

Hope this helps you!

@mstoykov mstoykov added question Further information is requested and removed triage labels Oct 21, 2024
@mstoykov mstoykov removed their assignment Oct 21, 2024
@besessener
Copy link
Author

i did not try it out. I was curious if the aggregation would happen all by itself. I though i i have 3 paralell jobs sending data, they would override each other instead of summing up.....like 10 users on each parallel, I thought I would only see 10 users in Grafana, not 30.

Hope I understood you right. In that case thank you :)

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

No branches or pull requests

2 participants