config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: BSD-2-Clause Imports: 3 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 {
	Buckets                   int              `mapstructure:"buckets"`
	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"`

	CarbonSearch   types.CarbonSearch
	CarbonSearchV2 types.CarbonSearchV2

	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

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

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

func (*Config) IsSanitized

func (cfg *Config) IsSanitized() bool

Jump to

Keyboard shortcuts

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