Skip to main content

Alerts & Notifications

Get notified immediately when your routes experience failures, high latency, unauthorized access attempts, or rate limit issues.

What Are Alerts?

Alerts monitor your routes in real-time and send notifications when specific conditions are met. Example:
Use cases:
  • 🚨 Detect API integration failures instantly
  • ⏱️ Monitor response time degradation
  • 🔒 Track unauthorized access attempts
  • 📊 Catch rate limit violations
  • 🛠️ Proactive issue resolution before customers complain

Alert Types

KnoxCall supports four types of alerts:

1. Request Failures

What it monitors: Failed requests (5xx status codes) Common scenarios:
  • Backend API is down (502, 503, 504)
  • Internal server errors (500)
  • Backend timeout issues
Example condition:
Triggers when: 5 or more 5xx errors occur within 5 minutes Use case:

2. High Latency

What it monitors: Request response times (P95 percentile) Common scenarios:
  • Backend database slow queries
  • Network issues
  • Service degradation
Example condition:
Triggers when: P95 latency exceeds 2 seconds (2000ms) over 5 minutes, with at least 10 requests Use case:
Percentiles explained:
  • P50 (median): 50% of requests faster than this
  • P95: 95% of requests faster than this (catches slowest 5%)
  • P99: 99% of requests faster than this (extreme outliers)

3. Rate Limit Exceeded

What it monitors: Requests hitting your configured rate limits Common scenarios:
  • Client sending too many requests
  • Runaway script or bot
  • DDoS attempt
Example condition:
Triggers when: Rate limit utilisation exceeds 80% within 10 minutes Use case:

4. Unauthorized Client

What it monitors: Requests from non-whitelisted IP addresses Common scenarios:
  • Security breach attempt
  • Client using wrong IP after server migration
  • Misconfigured firewall
Example condition:
Triggers when: Unauthorized IP tries to access route (immediate alert) Use case:

Notification Channels

Alerts can be sent through multiple channels:

Email Notifications

Configuration:
Format:
Best for: Primary notification channel, detailed information

SMS Notifications

Configuration:
Format:
Best for: Critical alerts, on-call engineers, immediate attention

Slack Notifications

Configuration:
Format:
Best for: Team collaboration, incident response, threaded discussions

Creating Your First Alert

Step 1: Navigate to Alerts

  1. Click Monitoring in sidebar
  2. Select Alerts
  3. Click + Create Alert

Step 2: Choose a Template

KnoxCall provides pre-configured templates: Integration Failure (Recommended)
  • Alert on any 5xx error
  • Severity: High
  • Cooldown: 15 minutes
  • Great for catching backend issues immediately
Critical Failures
  • Alert on 5+ failures within 5 minutes
  • Severity: Critical
  • Cooldown: 30 minutes
  • Best for production environments
High Latency
  • Alert when P95 latency exceeds 2 seconds
  • Severity: Medium
  • Cooldown: 20 minutes
  • Good for performance monitoring
Unauthorized Access Attempt
  • Immediate alert on unauthorized IP
  • Severity: High
  • Cooldown: 60 minutes
  • Essential for security
Or click Custom Alert to configure from scratch.

Step 3: Configure Alert

Route: Select the route to monitor
Alert Name:
Description (optional):
Alert Type:
Severity:
  • Low: Informational, review later
  • Medium: Important, check within hours
  • High: Urgent, check within 30 minutes
  • Critical: Emergency, check immediately
Alert Conditions (JSON):
Cooldown (minutes):
Time before alert can trigger again (prevents spam) Aggregation (minutes):
Window for batching multiple events into one alert

Step 4: Configure Notifications

Enable Email

Enable SMS (optional)

Enable Slack (optional)

At least one channel required. You can enable multiple channels to ensure alerts are seen.

Step 5: Custom Message Templates (Optional)

Customize notification content: Email Subject Template:
Email Body Template:
Available variables:
  • {{ALERT_NAME}} - Alert name
  • {{ROUTE_NAME}} - Route name
  • {{SEVERITY}} - low/medium/high/critical
  • {{TIMESTAMP}} - When alert triggered
  • {{CONDITION_DESCRIPTION}} - Human-readable condition
  • {{TRIGGER_DETAILS}} - Specific trigger info (errors, latency, etc.)
  • {{ALERT_ID}} - Alert ID
  • {{ROUTE_ID}} - Route ID

Step 6: Create Alert

Click Create Alert Alert is now active and monitoring your route! 🎉

Alert States

Alerts have three states:

1. OK (Green)

Meaning: Condition is not met, everything normal Example:

2. Triggered (Red)

Meaning: Condition met, notification sent Example:

3. Cooldown (Yellow)

Meaning: Recently triggered, waiting for cooldown period Example:
Purpose of cooldown:
  • Prevents notification spam
  • Gives time to fix issue
  • Won’t trigger again until cooldown expires

Advanced Configuration

Condition Schemas

Different alert types have different configuration options:

Request Failures Schema

High Latency Schema

Rate Limit Exceeded Schema

Unauthorized Client Schema

Multi-Status Code Filtering

Include only specific errors:
Exclude specific errors:
Use case: Ignore expected 503 errors during maintenance.

Latency Percentiles

P50 (Median):
Alert if typical request exceeds 500ms P95 (Recommended):
Alert if slowest 5% exceed 2 seconds P99 (Outliers):
Alert on extreme outliers (slowest 1%)

Alert Management

Viewing Alert Status

Navigate to: Monitoring → Alerts List view shows:
  • Alert name and description
  • Route name
  • Current state (OK / Triggered / Cooldown)
  • Severity
  • Trigger count (24h)
  • Last triggered time
  • Enabled/Disabled status
Filters:
  • Severity: Low, Medium, High, Critical
  • State: OK, Triggered, Cooldown
  • Enabled: All, Enabled, Disabled
  • Alert Type: Failures, Latency, Rate Limit, Unauthorized
  • Activity: 0 triggers, 1-5, 6-20, 20+

Viewing Alert Details

Click alert name to see: Overview:
  • Current state
  • Trigger history graph
  • Recent triggers list
Configuration:
  • Alert type and conditions
  • Notification channels
  • Cooldown and aggregation settings
Logs:
  • When alert triggered
  • Notification delivery status
  • Error details that triggered alert

Editing Alerts

  1. Navigate to alert details
  2. Click Edit Alert
  3. Modify settings:
    • Change threshold
    • Update notification emails/phones
    • Adjust cooldown
    • Change severity
  4. Click Save Changes
Changes take effect immediately.

Disabling Alerts

Temporarily disable:
  1. Navigate to alert details
  2. Toggle Enabled switch to OFF
  3. Alert stops monitoring (won’t trigger)
Use cases:
  • Scheduled maintenance
  • Known issue being fixed
  • Testing changes without spam
Re-enable:
  1. Toggle Enabled switch to ON
  2. Alert resumes monitoring

Deleting Alerts

  1. Navigate to alert details
  2. Click Delete Alert
  3. Confirm deletion
Deleting an alert is permanent! All trigger history and configuration is lost. Consider disabling instead if you might need it later.

Alert Logs

View alert trigger history: Navigate to: Monitoring → Alert Logs Shows:
  • When alert triggered
  • Which route
  • Severity
  • Trigger details (error messages, latency values, etc.)
  • Notification channels used
  • Delivery status (sent, failed)
Filter by:
  • Date range
  • Route
  • Severity
  • Alert name
Use cases:
  • Audit notification history
  • Troubleshoot missed alerts
  • Analyze incident patterns

Best Practices

1. Start with Templates

Use built-in templates when creating your first alerts Why:
  • Pre-configured with sensible defaults
  • Battle-tested thresholds
  • Clear descriptions
Don’t create custom alerts immediately

2. Set Appropriate Thresholds

Too sensitive (spam):
Triggers on single error = too noisy Too lenient (miss issues):
50 errors in an hour might mean users already frustrated Just right:
Catches issues quickly without false positives

3. Use Severity Correctly

Critical:
  • Production payment processing down
  • Complete API outage
  • Security breach attempt
High:
  • Partial service degradation
  • Single integration failing
  • Elevated error rate
Medium:
  • Performance degradation
  • Non-critical API slow
  • Occasional errors
Low:
  • Informational
  • Minor issues
  • For tracking/trending

4. Configure Cooldowns

Problem: Alert triggers every minute → 60 emails in 1 hour Solution: Use cooldown
Recommended cooldowns:
  • Critical alerts: 30-60 minutes
  • High alerts: 15-30 minutes
  • Medium alerts: 60 minutes
  • Low alerts: 2-4 hours

5. Use Multiple Notification Channels

Redundancy strategy:
Why:
  • Email might be missed
  • SMS ensures immediate attention
  • Slack allows team collaboration

6. Test Your Alerts

Before going live:
  1. Create test alert with low threshold:
  2. Trigger condition (e.g., send request that returns 500)
  3. Verify notifications received:
    • Check email inbox
    • Check SMS received
    • Check Slack message
  4. Adjust configuration if needed
  5. Set production thresholds

7. Monitor Alert Logs

Weekly review:
  • Which alerts triggered most?
  • Any false positives?
  • Any missed incidents?
Adjust thresholds based on patterns.

8. Document Your Alerts

In alert description, include:
Benefits:
  • Team knows what alert means
  • Clear action steps
  • Faster incident resolution

Common Alert Scenarios

Scenario 1: Backend API Outage

Problem: Stripe API completely down Alert Configuration:
Expected behavior:
  • 3 failures → Alert triggers
  • Notifications sent to all channels
  • Team investigates
  • Issue resolved or escalated to Stripe
  • 30 minutes later, if still failing, alert again

Scenario 2: Gradual Performance Degradation

Problem: Database queries getting slower over time Alert Configuration:
Expected behavior:
  • P95 latency hits 1.5s → Alert triggers
  • Team reviews logs
  • Identifies slow query
  • Optimizes or adds caching
  • Latency returns to normal

Scenario 3: Security Incident

Problem: Unknown IP trying to access internal API Alert Configuration:
Expected behavior:
  • Unauthorized IP makes request → Immediate alert
  • Security team reviews
  • IP blocked if malicious
  • Client contacted if legitimate (e.g., moved servers)

Scenario 4: Rate Limit Abuse

Problem: Client’s script gone rogue, hitting rate limits Alert Configuration:
Expected behavior:
  • Client reaches 80% of rate limit within 10 min → Alert
  • Review which client
  • Contact client
  • They fix infinite loop
  • Rate limit stops triggering

Troubleshooting

Issue: “Alert not triggering”

Check:
  1. Alert is enabled (not disabled)
  2. Route is active (not disabled)
  3. Condition threshold is correct (not too high)
  4. Check alert state (might be in cooldown)
Debug:
Alert won’t trigger again until cooldown expires

Issue: “Too many notifications”

Cause: Threshold too low or cooldown too short Fix:
  1. Increase threshold: 1 → 5
  2. Increase cooldown: 5 minutes → 30 minutes
  3. Increase window: 1 minute → 5 minutes

Issue: “Not receiving email notifications”

Check:
  1. Email addresses correct (no typos)
  2. Check spam folder
  3. Email channel enabled
  4. Alert logs show “sent” status
Debug: Navigate to Alert Logs → Find trigger event → Check delivery status

Issue: “Slack notifications not working”

Check:
  1. Webhook URL correct (starts with https://hooks.slack.com)
  2. Slack channel enabled in alert config
  3. Webhook not revoked in Slack settings
Test webhook:
Should see message in Slack channel.
  • API Logs: View detailed request history that triggered alerts
  • Analytics: Visualize trends and patterns in alert triggers
  • Audit Logs: Track who created/modified alerts

Next Steps

API Logs

View requests that triggered alerts

Analytics

Analyze alert patterns and trends

Audit Logs

Track alert configuration changes

Routes

Configure routes to monitor

📊 Statistics

  • Level: beginner to intermediate
  • Time: 15 minutes

🏷️ Tags

alerts, monitoring, notifications, incidents, email, sms, slack