config

package
v0.0.0-...-5d836ad 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 (
	DefaultUnmarshallQueueCount   = 4
	DefaultUnmarshallQueueSize    = 10240
	DefaultReceiverWindowSize     = 1024
	DefaultCKReadTimeout          = 300
	DefaultFlowMetrics1MTTL       = 168 // hour
	DefaultFlowMetrics1STTL       = 24  // hour
	DefaultPromWriterQueueCount   = 2
	DefaultPromWriterQueueSize    = 100000
	DefaultPromWriterBatchSize    = 2048
	DefaultPromWriterFlushTimeout = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Base                 *config.Config
	CKReadTimeout        int                   `yaml:"ck-read-timeout"`
	CKWriterConfig       config.CKWriterConfig `yaml:"metrics-ck-writer"`
	DisableSecondWrite   bool                  `yaml:"disable-second-write"`
	UnmarshallQueueCount int                   `yaml:"unmarshall-queue-count"`
	UnmarshallQueueSize  int                   `yaml:"unmarshall-queue-size"`
	ReceiverWindowSize   uint64                `yaml:"receiver-window-size"`
	FlowMetricsTTL       FlowMetricsTTL        `yaml:"flow-metrics-ttl-hour"`
}

func Load

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

func (*Config) Validate

func (c *Config) Validate() error

type FlowMetricsConfig

type FlowMetricsConfig struct {
	FlowMetrics Config `yaml:"ingester"`
}

type FlowMetricsTTL

type FlowMetricsTTL struct {
	VtapFlow1M int `yaml:"vtap-flow-1m"`
	VtapFlow1S int `yaml:"vtap-flow-1s"`
	VtapApp1M  int `yaml:"vtap-app-1m"`
	VtapApp1S  int `yaml:"vtap-app-1s"`
}

type PCapConfig

type PCapConfig struct {
	FileDirectory string `yaml:"file-directory"`
}

Jump to

Keyboard shortcuts

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