config

package
v0.0.0-...-ccd3de2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDecoderQueueCount            = 1
	DefaultDecoderQueueSize             = 1 << 14
	DefaultPrometheusTTL                = 168       // hour
	DefaultLabelMsgMaxSize              = 100 << 20 // 100M
	DefaultLabelRequestMetricBatchCount = 128
	DefaultAppLabelColumnIncrement      = 4
	DefaultAppLabelColumnMinCount       = 8
	DefaultLabelCacheExpiration         = 86400 // 1 day
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Base                         *config.Config
	CKWriterConfig               config.CKWriterConfig `yaml:"prometheus-ck-writer"`
	DecoderQueueCount            int                   `yaml:"prometheus-decoder-queue-count"`
	DecoderQueueSize             int                   `yaml:"prometheus-decoder-queue-size"`
	TTL                          int                   `yaml:"prometheus-ttl-hour"`
	LabelMsgMaxSize              int                   `yaml:"prometheus-label-msg-max-size"`
	LabelRequestMetricBatchCount int                   `yaml:"prometheus-label-request-metric-batch-count"`
	AppLabelColumnIncrement      int                   `yaml:"prometheus-app-label-column-increment"`
	AppLabelColumnMinCount       int                   `yaml:"prometheus-app-label-column-min-count"`
	IgnoreUniversalTag           bool                  `yaml:"prometheus-sample-ignore-universal-tag"`
	LabelCacheExpiration         int                   `yaml:"prometheus-label-cache-expiration"`
}

func Load

func Load(base *config.Config, path string) *Config

func (*Config) Validate

func (c *Config) Validate() error

type PrometheusConfig

type PrometheusConfig struct {
	Prometheus Config `yaml:"ingester"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL