config

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SumBuckets                bool             `mapstructure:"sumBuckets"`
	Buckets                   int              `mapstructure:"buckets"`
	BucketsWidth              []int64          `mapstructure:"bucketsWidth"`
	BucketsLabels             []string         `mapstructure:"bucketsLabels"`
	ExtendedStat              bool             `mapstructure:"extendedStat"` // extended stat metrics
	SlowLogThreshold          time.Duration    `mapstructure:"slowLogThreshold"`
	ConcurrencyLimitPerServer int              `mapstructure:"concurrencyLimitPerServer"`
	MaxIdleConnsPerHost       int              `mapstructure:"maxIdleConnsPerHost"`
	Backends                  []string         `mapstructure:"backends"`
	BackendsV2                types.BackendsV2 `mapstructure:"backendsv2"`
	MaxBatchSize              *int             `mapstructure:"maxBatchSize"`
	FallbackMaxBatchSize      int              `mapstructure:"-"`
	MaxTries                  int              `mapstructure:"maxTries"`
	DoMultipleRequestsIfSplit bool             `mapstructure:"doMultipleRequestsIfSplit"`

	ExpireDelaySec       int32
	TLDCacheDisabled     bool `mapstructure:"tldCacheDisabled"`
	InternalRoutingCache time.Duration
	Timeouts             types.Timeouts
	KeepAliveInterval    time.Duration `mapstructure:"keepAliveInterval"`

	// ScaleToCommonStep controls if metrics in one target should be aggregated to common step
	ScaleToCommonStep bool `mapstructure:"scaleToCommonStep"`
	// contains filtered or unexported fields
}

Config is a structure that contains zipper-related configuration bits

func SanitizeConfig added in v0.13.0

func SanitizeConfig(logger *zap.Logger, oldConfig Config) *Config

SanitizeConfig perform old kind of checks and conversions for zipper's configuration

func (*Config) IsSanitized added in v0.13.0

func (cfg *Config) IsSanitized() bool

Jump to

Keyboard shortcuts

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