Observability
Monitor your Tusflow API health and performance with built-in observability features
Overview
Tusflow provides comprehensive observability through health checks and integrations with monitoring services like BetterStack and OpenStatus. Monitor your API's health, track performance metrics, and get alerted about issues.
Health Check Endpoint
The /health
endpoint provides real-time status of all critical services:
The health check:
- Verifies S3 connectivity
- Validates Redis connection
- Measures response latency
- Returns detailed status headers
BetterStack Integration
Monitor your Tusflow API with BetterStack's comprehensive observability platform:
Configure BetterStack
- Create a BetterStack account
- Add a new monitor in BetterStack dashboard
- Select "HTTP" monitor type
- Enter your Tusflow health endpoint URL
Set Up Alerts
- Configure notification channels (email, Slack, etc.)
- Set alert thresholds
- Define escalation policies
- Add team members
Monitor Metrics
- Response times
- Error rates
- Availability percentage
- Service dependencies
Example BetterStack configuration:
OpenStatus Integration
IncidentMonitor your API status with OpenStatus's synthetic monitoring:
Create Monitor
- Sign up for OpenStatus
- Create a new HTTP monitor
- Configure health check endpoint
- Set check frequency
Configure Assertions
- Status code should be 200
- Response should contain
{"status": "ok"}
- Response time under threshold
- Headers present and valid
Set Up Status Page
- Create public status page
- Add monitor to status page
- Configure incident alerts
- Share status page URL
Example OpenStatus configuration:
Implementation Details
The health check endpoint implementation:
Best Practices
-
Monitoring Setup
- Monitor from multiple regions
- Set appropriate check frequencies
- Configure meaningful thresholds
- Enable incident alerts
-
Health Checks
- Keep checks lightweight
- Include critical dependencies
- Set reasonable timeouts
- Monitor response times
-
Alerting
- Define clear escalation policies
- Set up redundant notifications
- Configure maintenance windows
- Document incident responses
Regular health checks and monitoring are essential for maintaining high availability and quickly responding to issues.
Last updated on