diff --git a/tsdb/compact.go b/tsdb/compact.go index 74f54fdb9..fbc5b3583 100644 --- a/tsdb/compact.go +++ b/tsdb/compact.go @@ -488,6 +488,12 @@ func (c *LeveledCompactor) Write(dest string, b BlockReader, mint, maxt int64, p } if meta.Stats.NumSamples == 0 { + level.Info(c.logger).Log( + "msg", "write block resulted in empty block", + "mint", meta.MinTime, + "maxt", meta.MaxTime, + "duration", time.Since(start), + ) return ulid.ULID{}, nil }