# Functions
Delete removes directory that is meant to be block directory.
Download downloads directory that is mean to be block directory.
DownloadMeta downloads only meta file from bucket by block ID.
GatherFileStats returns metadata.File entry for files inside TSDB block (index, chunks, meta.json).
GatherIndexHealthStats returns useful counters as well as outsider chunks (chunks outside of block time range) that helps to assess index health.
GetSegmentFiles returns list of segment files for given block.
MarkForDeletion creates a file which stores information about when the block was marked for deletion.
MarkForNoCompact creates a file which marks block to be not compacted.
MarkForNoDownsample creates a file which marks block to be not downsampled.
NewBaseFetcher constructs BaseFetcher.
NewBaseFetcherWithMetrics constructs BaseFetcher.
NewConsistencyDelayMetaFilter creates ConsistencyDelayMetaFilter.
NewConsistencyDelayMetaFilterWithoutMetrics creates ConsistencyDelayMetaFilter.
NewDeduplicateFilter creates DefaultDeduplicateFilter.
NewDiskWriter allows to write single TSDB block to disk and returns statistics.
NewIgnoreDeletionMarkFilter creates IgnoreDeletionMarkFilter.
NewLabelShardedMetaFilter creates LabelShardedMetaFilter.
NewMetaFetcher returns meta fetcher.
NewMetaFetcherWithMetrics returns meta fetcher.
NewRawMetaFetcher returns basic meta fetcher without proper handling for eventual consistent backends or partial uploads.
NewReplicaLabelRemover creates a ReplicaLabelRemover.
NewTimePartitionMetaFilter creates TimePartitionMetaFilter.
ParseRelabelConfig parses relabel configuration.
RemoveMark removes the file which marked the block for deletion, no-downsample or no-compact.
Repair open the block with given id in dir and creates a new one with fixed data.
Upload uploads a TSDB block to the object storage.
UploadPromBlock uploads a TSDB block to the object storage.
VerifyIndex does a full run over a block index and verifies that it fulfills the order invariants.
# Constants
Special label that will have an ULID of the meta.json being referenced to.
ChunksDirname is the known dir name for chunks with compressed samples.
DebugMetas is a directory for debug meta files that happen in the past.
IndexFilename is the known index file for block index.
IndexHeaderFilename is the canonical name for binary index header file that stores essential information.
Blocks that are marked for deletion can be loaded as well.
MarkedForNoCompactionMeta is label for blocks which are loaded but also marked for no compaction.
MarkedForNoDownsampleMeta is label for blocks which are loaded but also marked for no downsample.
MetaFilename is the known JSON filename for meta information.
# Structs
BaseFetcher is a struct that synchronizes filtered metadata of all block in the object storage with the local state.
BaseFetcherMetrics holds metrics tracked by the base fetcher.
ConcurrentLister lists block IDs by doing a top level iteration of the bucket followed by one Exists call for each discovered block to detect partial blocks.
ConsistencyDelayMetaFilter is a BaseFetcher filter that filters out blocks that are created before a specified consistency delay.
DefaultDeduplicateFilter is a BaseFetcher filter that filters out older blocks that have exactly the same data.
FetcherMetrics holds metrics tracked by the metadata fetcher.
IgnoreDeletionMarkFilter is a filter that filters out the blocks that are marked for deletion after a given delay.
LabelShardedMetaFilter represents struct that allows sharding.
RecursiveLister lists block IDs by recursively iterating through a bucket.
ReplicaLabelRemover is a BaseFetcher filter that modifies external labels of existing blocks, it removes given replica labels from the metadata of blocks that have it.
TimePartitionMetaFilter is a BaseFetcher filter that filters out blocks that are outside of specified time range.
# Interfaces
GaugeVec hides something like a Prometheus GaugeVec or an extprom.TxGaugeVec.
Lister lists block IDs from a bucket.
Filter allows filtering or modifying metas from the provided map or returns error.
Reader is like tsdb.BlockReader but without tombstones and size methods.
SeriesWriter is interface for writing series into one or multiple Blocks.
Writer is interface for creating block(s).