How toSet up alerts
Setting up alerts for performance metrics
Learn how to set up alerts to monitor your application's performance metrics in Maxim.
Monitor your application's performance by setting up alerts for latency, token usage, and cost metrics. Create custom thresholds and receive notifications when metrics exceed your specified limits.
Available metrics
Set up alerts for:
- Latency: Response times for API calls
- Token Usage: Token consumption per request
- Cost: API usage expenses
Create an alert
Open the Logs page and select your repository
Select the Alerts tab and click Create alert
Configure your alert settings:
- Select Log metrics as the type of alert
- Select a metric (Latency, Token Usage, or Cost)
- Choose an operator (greater than, less than)
- Enter the threshold value
- Set minimum occurrence count
- Define evaluation time range
Select your preferred notification channels (Slack, or PagerDuty)
Click Create alert
Common alert configurations" or "Alert configuration examples
Monitor response time
Triggers when response time exceeds 1 second in 5 requests within 5 minutes.
Setting up token consumption alerts
Triggers when hourly token usage exceeds 1 million.
Monitor daily costs
Triggers when daily costs exceed $100.
Manage alerts
- Edit: Click the options menu (three dots) > Edit alert
- Delete: Click the options menu > Delete alert
- Pause/Resume: Click the options menu > Pause alert or Resume alert
Best practices
- Begin with conservative thresholds to avoid alert fatigue
- Match time ranges to your application's usage patterns
- Use multiple occurrence thresholds for latency alerts to prevent false alarms
- Create layered alerts with different thresholds for comprehensive monitoring