Hi @nocgod,
I don’t think I fully understand what you expect here. For instance, it seems the first plot shows what you calculated from http_reqs; but in the second plot, how does the query look like exactly? If it’s a builtin function mean in Influx, IMHO, there might be some specifics in how it’s calculated.
the first plot shows http_reqs as reported by a k6 node into influxDB.
the query is:
SELECT sum("value") / ($__interval_ms / 1000)
FROM "http_reqs"
WHERE $timeFilter
GROUP BY time($__interval), "job_name"
fill(null)
I’m normalizing to an average over a second to smoothen the graph
the second plot show the number of requests received in my gateway solution per second
SELECT mean("rate.mean")
FROM "XXXX__requests"
WHERE ("app" = 'XXXX' AND "dc" =~ /^$dc$/ AND "env" =~ /.*$env$/ AND "server" =~ /^$host$/) AND $timeFilter
GROUP BY time($__interval), "server"
fill(linear)
In general, I have 2 instruments on my gateway and the seem to agree about the request rate as seen by the gateway. however, I’ve never been able to see “agreement” between the metrics reported by K6 agents and the gateway metrics.
just to ensure you that my “smoothening” doesn’t affect the general accuracy I’m also attaching 2 images:
SELECT sum("value")
FROM "http_reqs"
WHERE $timeFilter
GROUP BY time(1s), "job_name" fill(null)
so, what I’m really asking is why the difference between what k6 reports to influx and what the gateway really sees. The gateway is reporting the target rates as defined by the scenario.