1. Prerequisites
Before setting up alerts, ensure you have:- Netra SDK installed and initialized
- At least one traced LLM call in your dashboard
- Access to a notification channel (Email or Slack)
2. Create a Contact Point
Contact points define where notifications are sent when alerts trigger.Configure
- Name: Enter a descriptive name (e.g., “Engineering Alerts”)
- Integration: Select Email or Slack
- Details: Enter email address or Slack webhook URL
3. Create Your First Alert Rule
Basic Information
- Alert Name: “High Cost Alert”
- Description: “Notifies when a single request exceeds $0.50”
4. Test Your Alert
Trigger a trace that exceeds your threshold:5. Verify Notification
After triggering a high-cost trace:- Check your configured contact point (email inbox or Slack channel)
- You should receive a notification with:
- Alert name and description
- Triggered value (actual cost)
- Timestamp
- Link to the trace
Alerts evaluate in real-time. Notifications arrive within seconds of the threshold being breached.
Common Alert Examples
Latency Alert
Monitor response time:- Scope: Trace
- Metric: Latency
- Trigger: > 5000ms
Error Rate Alert
Catch failures:- Scope: Span
- Metric: Error
- Trigger: = true
Token Usage Alert
Control token consumption:- Scope: Trace
- Metric: Token Count
- Trigger: > 10000
Troubleshooting
| Issue | Solution |
|---|---|
| No notifications received | Verify contact point configuration and check spam folder |
| Alert not triggering | Confirm threshold is lower than actual values in your traces |
| Too many alerts | Increase threshold or add time-based aggregation |