From bbc9e47e42be783d673a7fa282ffde76cb25893f Mon Sep 17 00:00:00 2001 From: Patryk Prus
Date: Tue, 19 Aug 2025 18:33:52 -0400 Subject: [PATCH] Add comment about differences between agent mode and regular Prometheus Signed-off-by: Patryk Prus
--- tsdb/agent/db.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tsdb/agent/db.go b/tsdb/agent/db.go index 1df0d508ef..4e53b6168b 100644 --- a/tsdb/agent/db.go +++ b/tsdb/agent/db.go @@ -633,6 +633,7 @@ Loop: // keepSeriesInWALCheckpointFn returns a function that is used to determine whether a series record should be kept in the checkpoint. // last is the last WAL segment that was considered for checkpointing. +// NOTE: the agent implementation here is different from the Prometheus implementation, in that it uses WAL segment numbers instead of timestamps. func (db *DB) keepSeriesInWALCheckpointFn(last int) func(id chunks.HeadSeriesRef) bool { return func(id chunks.HeadSeriesRef) bool { // Keep the record if the series exists in the db.