Setting Up Your First Alert Rule
Create an alert that notifies you when something goes wrong.
Creating an Alert
- Navigate to Alerts in the sidebar.
- Click Create Alert.
- Configure:
- Name — descriptive name (e.g., "Payment Errors Spike")
- Condition — what triggers the alert (see below)
- Threshold — the value that triggers it
- Time window — the period to evaluate
- Notification channels — where to send the alert
Alert Conditions
| Condition | Triggers When |
|---|---|
| Error Spike | Error count exceeds threshold in time window |
| Error Rate | Error percentage exceeds threshold |
| Log Contains | Logs matching a pattern exceed threshold |
| New Error | A new error type is detected |
| 5xx Spike | Server error status codes exceed threshold |
| No Logs | No logs received for a specified period |
Example: Payment Error Alert
- Name: Payment Errors > 5 in 5 min
- Condition: Error Spike
- Threshold: 5 errors
- Time window: 5 minutes
- Service filter: payment-service
- Channels: Email to oncall@company.com
Testing Your Alert
Before saving, click Preview to see if this alert would have fired against your historical data. This helps you tune the threshold to avoid false positives.