MCPcopy
hub / github.com/prometheus/prometheus / Write

Method Write

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

Write persists one or more Blocks into a directory. No Block is written when resulting Block has 0 samples and returns an empty slice. Prometheus always return one or no block. The interface allows returning more than one block for downstream users to experiment with compactor.

(dest string, b BlockReader, mint, maxt int64, base *BlockMeta)

Source from the content-addressed store, hash-verified

62 // Prometheus always return one or no block. The interface allows returning more than one
63 // block for downstream users to experiment with compactor.
64 Write(dest string, b BlockReader, mint, maxt int64, base *BlockMeta) ([]ulid.ULID, error)
65
66 // Compact runs compaction against the provided directories. Must
67 // only be called concurrently with results of Plan().

Implementers 3

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

Calls

no outgoing calls