Working with T380012 made me reflect about our alert setup. Right now we have adopted the performance team old setup: Alert on as a small regression as we can find. What's good about that approach is that it is simple: We need to investigate all alerts that happens.
However, I need your Web-Team feedback on this: What should our definition of a performance regression be for triggering alerts? Today we let metric values define our alert thresholds. An alternative approach could be to base alerts on the number of users affected and then calculate the metric thresholds.
User impact based alerting
Today we have 24 billion page views, 1,5 billion unique devices per month.
If we then look at the 75th percentile (like Google does for Web Vitals metrics) we have 25% of our users that have worse performance than that threshold.
A regression that affect the 75th percentile then means:
- 6 billion page views per month ( 24 billion × 0.25).
- 375 million unique devices (1.5 billion × 0.25)
How many users need to be affected by a regression for us to do the alert and investigate what's going on?
- Is a regression that affects 375 million users significant enough to alert on? Is 10 million?
- Do users location matters? For example, we know that this regression affects 5 million users in India with slow devices
- Do the severity of the regression matter (how large is the actual regression)?
If we can define those limits, we can tune so that both synthetic and real user monitoring alerts match our definition of what's important. It will need some work, and I I think moving to these kind of alerts makes them both more meaningful and actionable.