feat: add comprehensive health check endpoints with component monitoring
- Implement /health and /ready endpoints in pkg/health - Add dynamic health checking that executes checks on each request - Introduce health check registration system for plugging in component checks - Register basic checks for provider status, agent status in gateway - Add utility functions for common health checks (memory, dependencies) - Ensure endpoints are compliant with Kubernetes probe requirements
This commit is contained in:
parent
6039e1ed93
commit
8861282234
1 changed files with 1 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ func gatewayCmd(debug bool) error {
|
||||||
// since the original ctx is already canceled.
|
// since the original ctx is already canceled.
|
||||||
shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 15*time.Second)
|
shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 15*time.Second)
|
||||||
defer shutdownCancel()
|
defer shutdownCancel()
|
||||||
|
channelManager.StopAll(shutdownCtx)
|
||||||
deviceService.Stop()
|
deviceService.Stop()
|
||||||
heartbeatService.Stop()
|
heartbeatService.Stop()
|
||||||
cronService.Stop()
|
cronService.Stop()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue