Documentation
¶
Index ¶
Constants ¶
View Source
const ( BackendS3 = "s3" BackendGCS = "gcs" )
Constants for the config values
View Source
const (
// TenantIDExternalLabel is the external label set when shipping blocks to the storage
TenantIDExternalLabel = "__org_id__"
)
Variables ¶
This section is empty.
Functions ¶
func FromLabelAdaptersToLabels ¶
func FromLabelAdaptersToLabels(input []client.LabelAdapter) labels.Labels
FromLabelAdaptersToLabels converts []LabelAdapter to TSDB labels.Labels.
Types ¶
type Config ¶
type Config struct { Dir string `yaml:"dir"` SyncDir string `yaml:"sync_dir"` BlockRanges DurationList `yaml:"block_ranges_period"` Retention time.Duration `yaml:"retention_period"` ShipInterval time.Duration `yaml:"ship_interval"` Backend string `yaml:"backend"` // Backends S3 s3.Config `yaml:"s3"` GCS gcs.Config `yaml:"gcs"` }
Config holds the config information for TSDB storage
func (*Config) RegisterFlags ¶
RegisterFlags registers the TSDB flags
type DurationList ¶
DurationList is the block ranges for a tsdb
func (DurationList) Set ¶
func (d DurationList) Set(s string) error
Set implements the flag.Var interface
func (DurationList) String ¶
func (d DurationList) String() string
String implements the flag.Var interface
func (DurationList) ToMillisecondRanges ¶
func (d DurationList) ToMillisecondRanges() []int64
ToMillisecondRanges returns the duration list in milliseconds
Click to show internal directories.
Click to hide internal directories.