1
0
forked from wrenn/wrenn
Reviewed-on: wrenn/wrenn#33
This commit is contained in:
2026-04-18 08:57:07 +00:00
parent 512c043c5c
commit 23dca7d9ff
18 changed files with 1018 additions and 129 deletions

View File

@ -210,6 +210,10 @@ func Run(opts ...Option) {
sampler := api.NewMetricsSampler(queries, 10*time.Second)
sampler.Start(ctx)
// Start daily usage rollup (pre-computes CPU-minutes and RAM-MB-minutes).
rollup := api.NewDailyUsageRollup(queries, time.Hour)
rollup.Start(ctx)
// Start extension background workers.
for _, ext := range o.extensions {
for _, worker := range ext.BackgroundWorkers(sctx) {