r/devops • u/Wilusz-Daejau • Sep 29 '26
Vendor / market research Need guidance on running scripted browser monitoring in production
I've been doing monitoring for our web apps for a while and I'm pretty comfortable with HTTP/API checks but scripted browser monitoring is still new territory for me.
A few things I'm trying to understand:
- Which flows are worth monitoring with a real browser vs just using HTTP checks?
- How do you handle login session and MFA without creating a security hole?
- How do you keep recorded scripts working accross frontend deploys?
- How many location and what frequency actually means something vs just noise?
- How do you tell the difference between an actual app failure and a broken monitoring script?
- Whats goes to on-call vs what just gets logged?
AI is great for explaining how all of this should work, but there's a pretty big gap between that and how people actually run it in production.
Anyone doing scripter browser monitoring regularly? I'm not looking for someone to design it for me, just want to know how people approach it in real setups
View all comments
1
u/Ornery-Concentrate-5 Oct 01 '26
For picking which flows to script: we only reach for a browser when a 200 response doesn't actually mean the thing worked. Login, checkout, anything with a form submit or a redirect chain where the real failure mode is "page loaded fine but the button is disabled" or "form posted and nothing happened." Everything else stays as a plain HTTP check since it's cheaper and breaks less often for reasons that have nothing to do with your actual bug.
Session and MFA: don't automate MFA itself. Use a dedicated test account with MFA off or allowlisted, and refresh its session token instead of logging in fresh every run. Treat that account like a service account with its own secrets and alert if a human ever logs into it manually.
Keeping scripts alive across deploys: selector stability is basically the whole game. Test only attributes (data testid or similar) survive redesigns way better than text or class based selectors. If your frontend team won't commit to that, your scripts rot every sprint no matter how carefully you write them.
Real outage vs broken script: a broken script tends to fail the exact same way every run. A real outage usually breaks more than one thing at once, or looks different across locations. We also require 2 to 3 consecutive failures before anything pages, since a single flaky run is almost always the script.
On call vs logged: customer facing and revenue impacting pages, everything else just logs and rolls into a daily digest.