feat(platform): report capacity check health

This commit is contained in:
lingniu
2026-07-04 08:49:44 +08:00
parent ff8a868abd
commit b26a37f6f7
4 changed files with 143 additions and 5 deletions

View File

@@ -38,6 +38,10 @@ func NewServer(cfg config.Config) http.Handler {
productionStore.WithRedisOnlineKeyCounter(platform.NewRedisOnlineKeyCounter(cfg.RedisAddr, cfg.RedisUsername, cfg.RedisPassword, cfg.RedisDB))
log.Printf("production redis health probe enabled")
}
if cfg.CapacityCheckBin != "" {
productionStore.WithCapacityChecker(platform.NewCapacityCheckCommand(cfg.CapacityCheckBin))
log.Printf("production capacity-check probe enabled")
}
store = productionStore
log.Printf("production mysql store enabled")
}