Health Controller
The Health Controller provides system health monitoring, status checks, and diagnostic information for the VChata platform.Base Path
Overview
This controller provides essential system monitoring capabilities:- 💚 Health Checks - System and service health monitoring
- 📊 Status Information - Detailed system status and metrics
- 🔍 Diagnostic Tools - System diagnostics and troubleshooting
- 📈 Performance Metrics - System performance and resource usage
- 🛡️ Security Status - Security and authentication status
- 🔧 Service Dependencies - External service connectivity checks
Authentication & Authorization
- 🔓 Public Access - Health endpoints are publicly accessible for monitoring
- 🔐 Diagnostic Access - Some diagnostic endpoints require authentication
- 🏢 Organization Scoped - Organization-specific health checks require authentication
Health Checks
Basic Health Check
Detailed Health Check
System Status
Get System Status
Get Service Status
Performance Metrics
Get Performance Metrics
Get Historical Metrics
Diagnostic Tools
System Diagnostics
Connectivity Test
Organization Health
Get Organization Health
Health Status Values
System Status
- healthy - All systems operational
- degraded - Some services experiencing issues
- unhealthy - Critical services down
- maintenance - System under maintenance
Service Status
- operational - Service running normally
- degraded - Service experiencing performance issues
- outage - Service completely unavailable
- maintenance - Service under maintenance
Error Responses
Common Errors
Monitoring Integration
Prometheus Metrics
The health controller exposes Prometheus-compatible metrics at/health/metrics/prometheus:
Grafana Dashboard
Health metrics can be visualized in Grafana dashboards for real-time monitoring.Alerting
Health Check Alerts
The system can be configured to send alerts based on health check results:- Service Down - Alert when critical services become unavailable
- Performance Degradation - Alert when response times exceed thresholds
- Resource Usage - Alert when CPU, memory, or disk usage is high
- Error Rate - Alert when error rates exceed acceptable levels
Integration with Monitoring Tools
- DataDog - Custom metrics and dashboards
- New Relic - Application performance monitoring
- PagerDuty - Incident management and alerting
- Slack - Real-time notifications and status updates
Security Considerations
Access Control
- Public Endpoints - Basic health checks are publicly accessible
- Authenticated Endpoints - Detailed diagnostics require authentication
- Rate Limiting - Health endpoints are rate limited to prevent abuse
- IP Restrictions - Sensitive diagnostic endpoints can be IP restricted
Data Protection
- Minimal Information - Health checks expose only necessary information
- No Sensitive Data - No passwords, tokens, or personal data in health responses
- Sanitized Output - All diagnostic output is sanitized before exposure