I’ve started with the default sample Grafana dashboard offered by k6. It’s great! In my tests I’m sending traffic to two different hosts and I want to show the requests per second going to each and the total. In my test I’m tagging the request with the hostname so I can query on it.
In Grafana I setup two queries: one to show the total RPS throughput and one to show by host. The results are confusing. The RPS numbers are much higher than anything else reported (such as checks per second) and the total is less than the RPS of each host. I must be doing something wrong.
Update: I may have solved my own problem by changing from
sum. At least in normal SQL that wouldn’t have made a difference since the
value is always
1, but maybe it’s doing a
count(distinct value) internally?