MCPcopy Index your code
hub / github.com/prometheus/prometheus / Compact

Method Compact

tsdb/compact.go:76–76  ·  view source on GitHub ↗

Compact runs compaction against the provided directories. Must only be called concurrently with results of Plan(). Can optionally pass a list of already open blocks, to avoid having to reopen them. Prometheus always return one or no block. The interface allows returning more than one block for downs

(dest string, dirs []string, open []*Block)

Source from the content-addressed store, hash-verified

74 // * The source dirs are marked Deletable.
75 // * Block is not included in the result.
76 Compact(dest string, dirs []string, open []*Block) ([]ulid.ULID, error)
77}
78
79// LeveledCompactor implements the Compactor interface.

Callers 15

requireEqualSamplesFunction · 0.65
TestDelayedCompactionFunction · 0.65
compactBlocksMethod · 0.65
TestChunkAtBlockBoundaryFunction · 0.65
TestNoEmptyBlocksFunction · 0.65
TestDB_LabelNamesFunction · 0.65
TestCorrectNumTombstonesFunction · 0.65
TestBlockRangesFunction · 0.65

Implementers 3

mockCompactorFailingtsdb/db_test.go
mockCompactorFntsdb/db_test.go
LeveledCompactortsdb/compact.go

Calls

no outgoing calls