feat: aggregate cluster statistics and send to influx with scheduled tasks worker

This commit is contained in:
spiral 2022-03-14 23:33:22 -04:00
parent 857e20b601
commit 8909330db2
No known key found for this signature in database
GPG key ID: 244A11E4B0BCF40E
8 changed files with 106 additions and 69 deletions

View file

@ -19,6 +19,11 @@ internal class Startup
await BuildInfoService.LoadVersion();
var services = BuildContainer(config);
var cfg = services.Resolve<CoreConfig>();
if (cfg.UseRedisMetrics)
await services.Resolve<RedisService>().InitAsync(cfg);
services.Resolve<TaskHandler>().Run();
await Task.Delay(-1);