I have a synthetic browser check that runs every 15min from 4 locations.
I’d like to alert when all 4 locations fail. The catch is that I only want to alert if the script makes it past a certain point. Thus, the new(-ish?) multi-location synthetic alert is not enough.
I’ve tried building a NRQL alert
SELECT count(*) from SyntheticCheck where monitorId = ‘cbf5a350-e793-47e3-8968-17f8928d5eb0’ and result = ‘FAILED’ and custom.failedAt = ‘AOSAPP’
, but I’m having trouble understanding what I should choose for
- critical violation → (above or equals 4 for at least 15 min
- window duration → 15min
- sliding window → ?
- streaming method -->timer
- timer -->15min
And since I want it to auto-close, I apparently need a loss of signal to “close all open violations” after → 10min.
I feel like I’ve spent all day looking at various blogs and Q&A posts. Some of which turn out to be outdated and are no longer applicable.
The above settings seemed pretty close, but when testing I saw the following
- app disabled at 11am MDT
- violation opened at 11:15am
- slack message at 11:30am
- app enabled at 11:31am
- violation closed at 11:43am
- Slack message at 11:43
Now as I typed all the above, I’m thinking that I need to change “for at least” to “at least once”.
Maybe that’s all I need to do, but before jumping through the hoops to test this again, I’d appreciate any feedback on other changes or considerations.
Thank you