Documentation ¶
Index ¶
Constants ¶
View Source
const (
// MetaFilename is the known JSON filename for meta information.
MetaFilename = "meta.json"
)
View Source
const ( // MetaVersion is a enumeration of meta versions supported by Thanos. MetaVersion1 = iota + 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Meta ¶
Meta describes the a block's meta. It wraps the known TSDB meta structure and extends it by Thanos-specific fields.
func InjectThanos ¶
func InjectThanos(logger log.Logger, bdir string, meta Thanos, downsampledMeta *tsdb.BlockMeta) (*Meta, error)
InjectThanos sets Thanos meta to the block meta JSON and saves it to the disk. NOTE: It should be used after writing any block by any Thanos component, otherwise we will miss crucial metadata.
type SourceType ¶
type SourceType string
const ( UnknownSource SourceType = "" SidecarSource SourceType = "sidecar" ReceiveSource SourceType = "receive" CompactorSource SourceType = "compactor" CompactorRepairSource SourceType = "compactor.repair" RulerSource SourceType = "ruler" BucketRepairSource SourceType = "bucket.repair" TestSource SourceType = "test" )
type Thanos ¶
type Thanos struct { Labels map[string]string `json:"labels"` Downsample ThanosDownsample `json:"downsample"` // Source is a real upload source of the block. Source SourceType `json:"source"` }
Thanos holds block meta information specific to Thanos.
type ThanosDownsample ¶
type ThanosDownsample struct {
Resolution int64 `json:"resolution"`
}
Click to show internal directories.
Click to hide internal directories.