config

package
v0.0.0-...-b8a1a0e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prometheus

type Prometheus struct {
	Limit                   string          `default:"1000000" yaml:"limit"`
	QPSLimit                int             `default:"100" yaml:"qps-limit"`
	SeriesLimit             int             `default:"500" yaml:"series-limit"`
	MaxSamples              int             `default:"50000000" yaml:"max-samples"`
	AutoTaggingPrefix       string          `default:"df_" yaml:"auto-tagging-prefix"`
	RequestQueryWithDebug   bool            `default:"false" yaml:"request-query-with-debug"`
	ExternalTagCacheSize    int             `default:"1024" yaml:"external-tag-cache-size"`
	ExternalTagLoadInterval int             `default:"300" yaml:"external-tag-load-interval"`
	ThanosReplicaLabels     []string        `yaml:"thanos-replica-labels"`
	OperatorOffloading      bool            `default:"false" yaml:"operator-offloading"`
	Cache                   PrometheusCache `yaml:"cache"`
}

type PrometheusCache

type PrometheusCache struct {
	RemoteReadCache        bool    `default:"false" yaml:"remote-read-cache"`  // cache for database quering
	ResponseCache          bool    `default:"false" yaml:"response-cache"`     // cache for query response (only operator offloading mode)
	CacheItemSize          uint64  `default:"51200000" yaml:"cache-item-size"` // cache-item-size for each cache item, default: 50M
	CacheMaxCount          int     `default:"1024" yaml:"cache-max-count"`     // cache-max-count for list of cache size
	CacheMaxAllowDeviation float64 `default:"3600" yaml:"cache-max-allow-deviation"`
}

Jump to

Keyboard shortcuts

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