Skip to main content

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

Description: Basic health check endpoint for load balancers and monitoring systems.

Detailed Health Check

Description: Detailed health check with service dependencies and system metrics.

System Status

Get System Status

Description: Comprehensive system status including all services and external dependencies.

Get Service Status

Description: Detailed status information for a specific service.

Performance Metrics

Get Performance Metrics

Description: Comprehensive performance metrics for system monitoring.
object

Get Historical Metrics

Description: Historical performance metrics for trend analysis.

Diagnostic Tools

System Diagnostics

Description: System diagnostic information for troubleshooting.

Connectivity Test

Description: Tests connectivity to external services and dependencies.

Organization Health

Get Organization Health

Description: Organization-specific health information and recommendations.

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