feat(platform): report redis online key health
This commit is contained in:
@@ -33,7 +33,12 @@ func NewServer(cfg config.Config) http.Handler {
|
||||
log.Printf("production tdengine store enabled")
|
||||
}
|
||||
}
|
||||
store = platform.NewProductionStore(db, tdengine, cfg.TDengineDatabase)
|
||||
productionStore := platform.NewProductionStore(db, tdengine, cfg.TDengineDatabase)
|
||||
if cfg.RedisAddr != "" {
|
||||
productionStore.WithRedisOnlineKeyCounter(platform.NewRedisOnlineKeyCounter(cfg.RedisAddr, cfg.RedisUsername, cfg.RedisPassword, cfg.RedisDB))
|
||||
log.Printf("production redis health probe enabled")
|
||||
}
|
||||
store = productionStore
|
||||
log.Printf("production mysql store enabled")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user