config

package
v1.6.65 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultDecoderQueueCount = 2
	DefaultDecoderQueueSize  = 4096
	DefaultExtMetricsTTL     = 168 // hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Base              *config.Config
	CKWriterConfig    config.CKWriterConfig `yaml:"ext-metrics-ck-writer"`
	DecoderQueueCount int                   `yaml:"ext-metrics-decoder-queue-count"`
	DecoderQueueSize  int                   `yaml:"ext-metrics-decoder-queue-size"`
	TTL               int                   `yaml:"ext-metrics-ttl-hour"`
}

func Load

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

func (*Config) Validate

func (c *Config) Validate() error

type ExtMetricsConfig

type ExtMetricsConfig struct {
	ExtMetrics Config `yaml:"ingester"`
}

Jump to

Keyboard shortcuts

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