Alerts
Alert rules define the conditions under which CT-Ops generates a notification. Rules are evaluated by the alerts consumer as metrics and check results arrive from the queue.
Alert Rule Concepts
Rule
A condition evaluated against metrics or check results. Examples:
- CPU > 90% sustained for 5 minutes
nginxprocess not running- Port 443 unreachable
- Certificate expiry < 14 days
Alert instance
When a rule fires, an alert instance is created. The instance tracks the current state of that specific rule/host combination:
firing— condition is activeresolved— condition is no longer active
Alert instances are never overwritten — each transition (firing → resolved → firing) creates a new record.
Notification
When an alert instance is created or transitions state, a notification is generated and routed to the configured notification channels.
Creating Alert Rules
- Navigate to Alerts → Rules
- Click New Rule
- Configure:
| Field | Description |
|---|---|
| Name | Human-readable name for the rule |
| Condition | Metric or check to evaluate (cpu_percent, memory_percent, disk_percent, check result) |
| Operator | >, <, >=, <=, ==, != |
| Threshold | Value to compare against |
| Duration | How long the condition must be true before firing (e.g. 5 minutes) |
| Severity | info, warning, critical |
| Scope | All hosts, a specific host, or a host group |
| Channels | Which notification channels to route to |
- Click Save
Silencing
Alert rules can be silenced for a specified period. Silencing suppresses notifications without deleting the rule. Useful for planned maintenance windows.
- Open the rule detail page
- Click Silence
- Set the duration
- Click Confirm
Silences expire automatically. Active silences are shown on the rule detail page with a countdown.
Alert History
The Alerts page shows:
- All currently firing alerts (top panel)
- Alert history — all past instances with timestamps, severity, and resolution status
Each alert instance links to the affected host and the rule that triggered it.
Notification Routing
When an alert fires, notifications are routed to the channels configured on the rule. See Notifications for the available channel types and how to configure them.