Documentation ¶
Overview ¶
Package export provides configuration management functions
Package export enables data exporting to ingestion backends (e.g. Loki)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { URL string `yaml:"url"` TenantID string `yaml:"tenantID"` BatchWait time.Duration `yaml:"batchWait"` BatchSize int `yaml:"batchSize"` Timeout time.Duration `yaml:"timeout"` MinBackoff time.Duration `yaml:"minBackoff"` MaxBackoff time.Duration `yaml:"maxBackoff"` MaxRetries int `yaml:"maxRetries"` Labels []string `yaml:"labels"` StaticLabels model.LabelSet `yaml:"staticLabels"` IgnoreList []string `yaml:"ignoreList"` PrintInput bool `yaml:"printInput"` PrintOutput bool `yaml:"printOutput"` ClientConfig promconf.HTTPClientConfig `yaml:"clientConfig"` TimestampLabel model.LabelName `yaml:"timestampLabel"` // TimestampScale provides the scale in time of the units from the timestamp // E.g. UNIX time scale is '1s' (one second) while other clock sources might have // scales of '1ms' (one millisecond) or just '1' (one nanosecond) // Default value is '1s' TimestampScale time.Duration `yaml:"timestampScale"` }
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadConfig ¶
LoadConfig loads the YAML configuration from the file path passed as argument
Click to show internal directories.
Click to hide internal directories.