A monitoring tool you have to look at is half a monitoring tool. The other half is the message that arrives before a customer's does. Sentrinel has three ways to send it, because there are three different ways for things to go wrong.
| Answers | Catches | |
|---|---|---|
| Alerts | Is it getting worse? | Error rate, p95 latency or request volume crossing a line |
| Uptime checks | Is it up from the outside? | The process that is down and so cannot report anything |
| Cron monitors | Did the job run? | The thing that didn't happen |
All three notify the same channels โ Slack, Discord, a generic webhook, or email โ and each channel belongs to one app, so a rule for your API cannot post into the channel for your phone app. Set channels up first: a rule with no channel only changes colour on a page nobody is watching.
Alerts: a line, a window, and a second look
An alert rule watches one metric โ error rate, p95 latency or request count โ over a window, optionally for one endpoint, and compares it to a threshold. Evaluated every minute. When it fires, the channels get the value and the threshold; when it recovers, they get a recovery notice, so nobody has to wonder whether the silence means fixed or broken.
It now takes two evaluations in a row to change state, in either direction. One bad minute on a quiet endpoint โ three requests, one of them an error โ is a 33% error rate and not an incident. Requiring agreement from the next minute costs you one minute of latency on a real problem and removes the page at 3am for a blip. The same rule applies to recovery, so an alert does not flap resolved-triggered-resolved while a problem is half-fixed.
Two evaluation bugs are gone with it. The endpoint filter used to be accepted and ignored: an alert "for /checkout" watched the whole app. And one rule failing to evaluate โ its database briefly unreachable โ used to stop every rule after it in the loop, for every app. Each rule is evaluated on its own now, and a slow evaluation cannot start stacking ticks on top of itself.
Database alerts โ replication lag, connection saturation, transaction-id wraparound, a disk filling up โ use the same channels and appear in the same list, next to the app's own rules.
Uptime checks: from the outside, and they page now
The plugin reports from inside your process, which means a process that is down reports nothing. An uptime check requests a URL from outside on an interval and records status, response time and the error.
Until now, a check going down changed a colour on the Uptime page and did nothing else. Checks now notify the app's channels: down after two consecutive failures, up on the first success after that, each announced exactly once. One failed request is a hiccup; two in a row, at least a minute apart, is worth a message.
A few rules keep one tenant's checks from affecting anyone else's:
- An interval is at least 60 seconds and a timeout at most 30. Values outside that used to be accepted, and a check with a ten-minute timeout against a server that never answers held up everyone's.
- Checks run in parallel with a bound, so a slow site delays only its own check.
- A check can only reach a public address. Private networks, loopback and cloud metadata addresses are refused โ including through a redirect โ because an uptime check is this server making a request on your behalf, and it must not be able to reach inside the network it runs in. (A self-hosted install that needs to check its own internal services can allow private targets explicitly.)
Cron monitors: noticing an absence
Uptime checks cannot tell you that last night's billing run never started. Nothing failed; nothing happened. A cron monitor gives each job a check-in URL, and the job pings it when it finishes:
curl -fsS https://api.sentrinel.dev/api/checkin/<token>
If a ping does not arrive within the interval plus a grace period, the monitor is marked missed and notifies. Long jobs can report ?state=start when they begin and a ?duration= when they end, which gives you a run-time history โ the nightly import that took eight minutes in March and forty now is a problem arriving slowly. And ?state=fail reports an explicit failure, which is different from never running; it now notifies too, where before it only marked the monitor failed.
Delivery you can rely on
A notification used to get exactly one attempt. A Slack 503, a dropped connection, and the page that mattered was gone โ with the alert already marked triggered, so it would not try again. Webhook deliveries are now retried for transient failures, and a transition is claimed with a compare-and-set before it is announced, so two overlapping checks cannot send the same page twice.
Which one to reach for: an alert for "it is getting worse", an uptime check for "it is not there", a cron monitor for "it did not happen". Most production apps want all three. The details are in the guide.