Threshold windows over time

I can set a threshold such as p(95)<300, but I believe this takes into account the p(95) between test start and “now”.

In a scenario where the request rate slowly ramps up, I’m more interested in a threshold failing if, for example, the p(95) of the requests over the last 60 seconds has gone over 300ms.

Is there any way to achieve such a threshold or similar?

Unfortunately that’s currently not possible, sorry. Follow Threshold improvements · Issue #1136 · grafana/k6 · GitHub for updates on when something like it is going to be implemented.