Skip to content

Alerts

Pakyas uses a smart alert system designed to minimize noise while ensuring you never miss critical failures.

Triggered when a check misses its expected schedule.

Timing: period + grace after last ping

Example: If a check has a 1-hour period and 10-minute grace, you’ll be alerted 70 minutes after the last successful ping.

Triggered when a check receives a fail ping or non-zero exit code.

Timing: As soon as the fail ping arrives, or after several consecutive fail pings if you set Consecutive Failures.

Triggered when a job exceeds its maximum runtime.

Timing: When max_runtime is configured and exceeded.

Configure how you receive alerts:

ChannelSetup
EmailAdd email addresses to notification groups
SlackConnect Slack workspace, select channels
WebhookAdd custom webhook URLs

Notification groups let you organize alert recipients by team or severity:

  1. Go to Settings > Notification Groups
  2. Create groups like “On-Call Team”, “Database Admins”
  3. Add email addresses, Slack channels, webhooks
  4. Assign groups to checks or projects
  • Organization defaults - Applied to all new projects
  • Project overrides - Override org defaults per project
  • Check overrides - Override project settings per check

Fine-tune when alerts fire:

Only alert after N consecutive fail pings (alert_after_fail_pings, 1-100 per check):

Terminal window
pakyas check update nightly-backup --alert-after-fail-pings 3

Useful for flaky jobs that occasionally fail but self-recover.

Alert when job is late but hasn’t missed entirely:

late_after_ratio: 0.5 # Alert at 50% of period

Example: If period is 1 hour and ratio is 0.5, alert after 30 minutes.

Only alert after N missed pings in a row (alert_after_miss_pings, 1-20 per check):

Terminal window
pakyas check update nightly-backup --alert-after-miss-pings 2

Useful for jobs that may legitimately skip occasionally.

Both thresholds are set on the check’s Alerts tab, in the API (alert_after_miss_pings, alert_after_fail_pings) and in the CLI; the missed-pings threshold can also be set when creating a check. A check without its own value uses its project’s, then the organization’s default (Settings > Alerting, 1 unless changed).

The API’s missed_before_alert field is deprecated and has no effect on alerting. It is still accepted and returned for older clients; use alert_after_miss_pings instead.

When a check recovers (receives success ping after being down), a recovery alert is sent automatically.

Schedule maintenance windows to silence alerts:

  • One-time windows - Specific date/time range
  • Recurring windows - Weekly/monthly patterns

Pause a check to stop all monitoring:

Terminal window
pakyas check pause my-check

Paused checks don’t generate alerts and show as “paused” status.

  1. Start with longer grace periods - Reduce as you understand job timing
  2. Use notification groups - Don’t alert everyone for everything
  3. Set consecutive failure thresholds - Reduce noise from flaky jobs
  4. Schedule maintenance windows - Don’t get paged during deploys