grafana / synthetic-monitoring-app

Synthetic Monitoring frontend application
https://grafana.com/docs/grafana-cloud/how-do-i/synthetic-monitoring/
GNU Affero General Public License v3.0
120 stars 17 forks source link

MultiHTTP check: all requests must succeed for a successful test, not only one #785

Open chlete opened 4 months ago

chlete commented 4 months ago

What would you like to be added:

It looks like the current MultiHTTP check, when using multiple requests, only one must be true to be considered successful, however, I'd like like to check all the requests to call it successful. Basically the solution would be to make it "AND" and not "OR".

Why is this needed: Some apps need multiple steps/requests and all of them must be "ok".

peterschretlen commented 3 months ago

Thanks for reporting this @chlete! We've been considering how best to approach this.

MultiHTTP checks use k6 under the hood. k6 has a concept of 'thresholds', which allow us to define criteria like 100% of requests must succeed. So we're considering enabling thresholds (turned off here ), and making this "100% must succeed" behaviour the default for new MultiHTTP checks. For backwards compatibility we'd provide an option for the existing behaviour.