Skip to content

Configure alerts

View Markdown

Attach alerts to the Component or database whose behavior matters. Alert policy travels with the resource and Environment instead of relying on a separate monitoring configuration.

Declare alerts on a Component:

resource: component
name: app
image: registry.deliberate.cloud/acme/app:1.4.2
cpu: 1
memory: 2Gi
alerts:
- name: repeated-restarts
type: restart_count
threshold: 3
window: 10m
- name: elevated-errors
type: http_error_rate
threshold: 5
window: 10m
minRequests: 100
recipients:
- on-call@example.com

Apply the Project to create or update the policy. If recipients is omitted or empty, the Team owner is notified. Recipient addresses are deduplicated within one alert, but separate alerts produce separate notifications.

TypeTargetThreshold meansAdditional field
log_patternComponent or databaseMatching log linespattern is required and case-sensitive
restart_countComponentContainer restarts
memory_pressureComponentMemory used as a percentage of its limit
cpu_throttleComponentThrottled CPU periods as a percentage
http_error_rateComponent5xx responses as a percentageminRequests is required
http_latencyComponentRequest latency in millisecondspercentile: p50, p95, or p99
db_backup_ageDatabaseHours since the last successful backupPoint-in-time check; no rolling window
db_connection_saturationDatabaseConnections as a percentage of the limit
db_disk_usageDatabaseStorage used as a percentage

Rolling windows accept durations from 1m through 24h. Start with symptoms a user would notice or an operator can act on. Avoid alerting on high CPU utilization alone: cpu_throttle tells you when the configured ceiling is actually slowing the Component.

A Blueprint may ship default alerts. Select its node on the Environment canvas to inspect them. Choose Customize alert policy to replace the defaults for a Component in that Blueprint instance; you can revert to the maintainer’s policy later. The same sheet also contains its CPU, memory, and replica limits.

Terminal window
deliberate alerts list --env production
deliberate alerts events app elevated-errors --env production
deliberate alerts test app elevated-errors --env production

Component alerts are the default. Add --kind databases when addressing a database alert. Testing exercises the notification path without waiting for the real threshold to be crossed.

Use a bounded silence during maintenance or while actively handling an incident:

Terminal window
deliberate alerts silence app elevated-errors \
--env production \
--for 2h \
--reason "planned migration"

The alert policy remains intact and resumes automatically when the silence expires. Remove it early with:

Terminal window
deliberate alerts unsilence app elevated-errors --env production

A silence suppresses notifications; it does not fix the underlying condition. Review event history and the Component or database health before closing the incident.