INNER CODE UNIT · Go

interval

itbench-hub/ITBench · components/recorders/prometheus/cmd/main.go:65

	interval := time.Duration(intervalSeconds) * time.Second

	var timestamps []time.Time
	for t := start.UTC(); !t.After(end.UTC()); t = t.Add(interval) {
		timestamps = append(timestamps, t)
	}

	slog.Info("starting prometheus burst recorder", "snapshots_count", len(timestamps), "output_dir", outputDir)

	if err := recorder.Run(context.Background(), endpoint, token, outputDir, timestamps...); err != nil {
		slog.Error("recorder failed", "err", err)
		os.Exit(1)
	}
	slog.Info("prometheus burst recording completed successfully")
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…