Determine maximum users per second the target application can handle before failing

Hi everyone, I’m new to Gatling and Scala. I am trying to set up automated performance tests for my application.

I have this simulation, which works fine for obtaining a pass/fail result based on predefined thresholds:
https://gist.github.com/dy-dx/665dc94846865f9f11e5886581c494db

But what I really want to do is determine the maximum users or requests per second my application can handle before it crashes or fails a request.
In other words, I want Gatling to ramp up the number of users per second until Gatling reports a KO, and I want it to report the number of active requests per second at that time.

Is this possible with Gatling? Or is this a misguided approach?
Thanks!