INNER CODE UNIT · Go
interval
itbench-hub/ITBench · components/recorders/clickhouse/cmd/main.go:76
interval := time.Duration(intervalSeconds) * time.Second
for t := start.UTC(); !t.After(end.UTC()); t = t.Add(interval) {
timestamps = append(timestamps, t)
}
slog.Info("starting clickhouse burst recorder", "snapshots_count", len(timestamps), "output_dir", outputDir)
if err := recorder.Run(context.Background(), host, username, password, outputDir, timestamps...); err != nil {
slog.Error("recorder failed", "err", err)
os.Exit(1)
}
slog.Info("clickhouse burst recording completed successfully")
}