Clean up logging, update website filter hint

This commit is contained in:
2026-03-25 07:36:43 +01:00
parent 456452afc4
commit d0fb34160f
2 changed files with 4 additions and 2 deletions

View File

@@ -62,8 +62,10 @@ func Backfill(ctx context.Context, collectorAddrs []string, cache *Cache) {
mergeDump(r.coarse, coarseByTS)
}
mergeStart := time.Now()
fine := buildSnapshots(fineByTS, st.FineTopK, st.FineRingSize)
coarse := buildSnapshots(coarseByTS, st.CoarseTopK, st.CoarseRingSize)
log.Printf("backfill: merge+topk took %s", time.Since(mergeStart).Round(time.Microsecond))
if len(fine)+len(coarse) == 0 {
log.Printf("backfill: no data received from any collector")
@@ -71,7 +73,7 @@ func Backfill(ctx context.Context, collectorAddrs []string, cache *Cache) {
}
loadStart := time.Now()
cache.LoadHistorical(fine, coarse)
log.Printf("backfill: loaded %d fine + %d coarse buckets in %s total",
log.Printf("backfill: loaded %d fine + %d coarse buckets in %s",
len(fine), len(coarse), time.Since(loadStart).Round(time.Microsecond))
}