feat(platform): report capacity check health
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user