Observability12 min read
Monitoring & Alert Rules
Set up real-time server and application monitoring with custom alert rules, notification channels, and incident management.
1.Metrics Collection
Understand what metrics Oxaploy collects and how to interpret them.
- System metrics: CPU, RAM, disk, network (collected every 30s)
- Application metrics: request rate, latency, error rate, throughput
- Database metrics: connections, query latency, cache hit ratio
- Container metrics: CPU, memory, restart count, health status
- Custom metrics: expose /metrics endpoint in Prometheus format
2.Create Alert Rules
Set up automated alerts for critical conditions.
- Navigate to Monitoring → Alert Rules
- Click New Alert Rule
- Select metric: CPU, RAM, disk, request latency, error rate, custom
- Set condition: >, <, >=, <=, ==, != with threshold
- Set evaluation window: 1m, 5m, 15m, 1h
- Configure notification channels (email, SMS, webhook)
- Set severity: warning, critical
- Add runbook URL for incident response
3.Notification Channels
Configure where alerts are sent.
- Email: add team member emails, customize subject/template
- SMS: add phone numbers (Enterprise plan)
- Webhook: POST JSON payload to custom endpoint
- Slack: incoming webhook URL with custom formatting
- Test each channel before saving
4.Incident Management
Track and resolve incidents efficiently.
- Alert triggers → incident created with timestamp and context
- View incident timeline: triggered, acknowledged, resolved
- Acknowledge incident to stop escalation
- Add comments and attach logs/screenshots
- Resolve incident — auto-closes after resolution confirmed
- Post-incident: generate postmortem template
- Metrics: MTTA, MTTR, incident frequency trends