Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MetaFilename is the known JSON filename for meta information. MetaFilename = "shipper.json" // MetaVersion1 represents 1 version of meta. MetaVersion1 = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockLister ¶
type Meta ¶
Meta defines the format thanos.shipper.json file that the shipper places in the data directory.
func ReadMetaFile ¶
ReadMetaFile reads the given meta from <dir>/shipper.json.
type Shipper ¶
type Shipper struct {
// contains filtered or unexported fields
}
Shipper watches a directory for matching files and directories and uploads them to a remote data store.
func New ¶
func New( logger log.Logger, r prometheus.Registerer, blockLister BlockLister, bucket objstore.Bucket, source block.SourceType, uploadCompacted bool, allowOutOfOrderUploads bool, ) *Shipper
New creates a new shipper that detects new TSDB blocks in dir and uploads them to remote if necessary. It attaches the Thanos metadata section in each meta JSON file. If uploadCompacted is enabled, it also uploads compacted blocks which are already in filesystem.
Click to show internal directories.
Click to hide internal directories.