Overview
The health check endpoint provides service health status information for monitoring and orchestration tools. It returns the current health status of VCVerifier and its components.Endpoint
GET/health
Returns the health status of the VCVerifier service.
Response
Success Response (200 OK) The service is healthy and operational.Overall health statusValue:
"ok"ISO 8601 timestamp of the health checkExample:
"2024-01-15T10:30:00Z"Component health information
Overall health statusValue:
"degraded" or "unavailable"ISO 8601 timestamp of the health check
Component health information with error details
Examples
Successful Health Check
cURL
Response
Using Health Check in Kubernetes
Using Health Check in Docker Compose
Use Cases
Kubernetes Probes
Configure liveness and readiness probes for container orchestration
Load Balancer Health
Use as health check target for load balancers and reverse proxies
Monitoring Systems
Integrate with monitoring tools like Prometheus, Nagios, or Datadog
CI/CD Pipelines
Verify service availability during deployment and integration tests
Implementation Details
The health check is implemented using the hellofresh/health-go library and registered at application startup. Source:health.go:21-28
The health endpoint does not require authentication and can be accessed without credentials for monitoring purposes.
Excluding from Logs
To prevent health check requests from cluttering your logs, exclude the/health path in your server configuration:
Related Endpoints
- API Overview - Complete API reference
- OpenID Configuration - Service discovery metadata