Skip to content

Observability

Notification rules

A notification rule decides which Stacktape events an alert channel receives, such as an opened incident, a failed deploy or a changed secret. Each rule belongs to one channel, lists the events it sends and can be limited to some projects and stages. You manage rules on the channel's page in the Console.

Rules cover events Stacktape records: incidents, deploys, rollbacks, deletes, Git deployments, script runs, secret and SSM parameter changes, and new security findings. Metric thresholds such as CPU or error rates are alarms, defined in your config. A firing alarm opens an incident, so a rule that sends incident events also covers alarms.

Add a rule

  1. Open Alerting → Channels and click the channel.
  2. Click New rule.
  3. Choose the events. A new rule starts with the failure events, the incident events and new security findings.
  4. Optionally, limit it to some projects and stages, for example only production.
  5. Click Add rule.

To remove a rule, choose Delete in its row menu; the channel stays. Adding and deleting rules needs the org:manage-notifications permission (Owners and Admins). Every member can see them.

A new channel already has rules, so it starts receiving alerts right away:

  • incidents opened, escalated and resolved, from every stage;
  • failed deploys, rollbacks and deletes, from every stage;
  • successful deploys and rollbacks, from production stages;
  • new security findings.

Events

GroupEvents
IncidentsIncident opened, Incident escalated, Incident resolved
SecurityNew critical or high security findings
DeploymentDeploy started, Deploy succeeded, Deploy failed, Deploy rolled back
Git deploymentsPreview deploy succeeded, Preview deploy failed, Git push deploy succeeded, Git push deploy failed
RollbackRollback succeeded, Rollback failed
DeletionDelete started, Delete succeeded, Delete failed
ScriptsScript run succeeded, Script run failed
SecretsSecret created, Secret updated, Secret deleted
SSM parametersParameter created, Parameter updated, Parameter deleted

Secret and SSM parameter events belong to the whole organization, so a rule that watches only those has no project or stage scope.

Route events to different channels

Each channel has its own rules, so give each one the events and scope it should get. A common split:

  • an on-call Slack channel: incident events and production deploy failures;
  • a team channel: every deploy of its own projects;
  • a webhook into your incident tool: incident events only.

The channel's page lists its rules with their Events, the projects and stages they come From, and when each was Added. The Channels list sums this up in its Receives column.

Check what was sent

Sent alerts lists every alert the Console sent, with the delivery result per channel. Set Delivery to Failed to find alerts that didn't arrive. Each channel's page also shows its recent alerts.

Rules, alarms and budgets

WatchesSet up in
Notification rulesStacktape events, such as a failed deploy or an opened incidentThe Console, on each channel's page
AlarmsCloudWatch metrics, such as error rate, CPU or queue depthYour config, in a resource's alarms; created on deploy
BudgetsAWS spendThe Console, Alerting → Budgets

All three can deliver to the same channel.