 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package shipper detects directories on the local file system and uploads them to a block storage.
Index ¶
Constants ¶
const MetaFilename = "thanos.shipper.json"
    MetaFilename is the known JSON filename for meta information.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Meta ¶
Meta defines the fomart thanos.shipper.json file that the shipper places in the data directory.
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, dir string, bucket objstore.Bucket, lbls func() labels.Labels, source metadata.SourceType, ) *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.
func NewWithCompacted ¶ added in v0.3.2
func NewWithCompacted( ctx context.Context, logger log.Logger, r prometheus.Registerer, dir string, bucket objstore.Bucket, lbls func() labels.Labels, source metadata.SourceType, prometheusURL *url.URL, ) (*Shipper, error)
NewWithCompacted creates a new shipper that detects new TSDB blocks in dir and uploads them to remote if necessary, including compacted blocks which are already in filesystem. It attaches the Thanos metadata section in each meta JSON file.
       Source Files
      ¶
      Source Files
      ¶
    
- shipper.go