Alerts
Alerts on anything PeekInside records, told in the app, by email or in Slack, each opening what it's about.
An alert watches a project for what you choose and tells your team when it happens: a request that failed or ran slow, a crash, a job that failed, an error log line, a process running out of memory. Set one from any page with Set alert: the page's filters become the alert's conditions.
What an alert watches#
Each alert watches one source, for records that meet all its conditions.
| Source | Conditions |
|---|---|
| Requests | Status code or class, method, duration, path, user, response body, exceptions, queries, slow queries, N+1 loops, outgoing calls, event-loop blocks, response size |
| Exceptions | Handled, unhandled or a crash; the error's class and message |
| Jobs | The job, its result (failed or not), duration, attempt, queue |
| Logs | Level, source, message |
| Runtime | Memory, heap (and its share of the limit), the heap's growth an hour (a leak), CPU, event-loop busy time and delay, garbage collection, open handles |
An alert fires every time a record meets it, or after several in a while (for example 5 slow requests in 10 minutes), only in the environments you pick, and then stays quiet for a while (10 minutes unless you choose otherwise).
Encrypted fields#
PeekInside Cloud can read what the dashboard charts and filters on (a status, a duration, a job's name, a log's level) and checks those conditions itself. A request's path, user and response, and an exception's or a log line's message, are encrypted on your server: conditions on them are checked by the SDK (PeekInside 1.2.5 and later) before it encrypts the record. It reports only which record met which alert, never what it holds. PeekInside stores the alert as you wrote it.
Where it tells#
- In the app (on by default): a notification for each member whose role can read what the alert watches. Notifications in the sidebar counts the unread ones; a click opens the request, error, job run, log line or process it's about.
- Email: to those same members. With Pro and up.
- Slack: to the organization's Slack channel, connected under Slack in its settings (an incoming webhook; owners and admins connect it). With Pro and up.
Each member decides whether your team's alerts reach them in the app and by email, and can turn a project off for themselves: see Notifications.
The built-in alerts need nothing set up and go to the same places: a new error, an app that goes down (and comes back), a scheduled job that misses its run (and runs again). In the app on every plan; by email and in Slack with Pro and up. Each member chooses which reach them and how, and owners and admins choose which post to Slack.
Who manages alerts#
A project's Alerts page lists its alerts: what each watches, where it tells, and when it last fired. Members whose role includes Manage alerts (owners, admins and developers, and any role you give it) set, change, pause and delete them, about what their role can read.