config

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 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
	CacheFirstTimeout  int    `default:"10" yaml:"cache-first-timeout"`    // time out for first cache item load, unit: s, default: 10s
	CacheCleanInterval int    `default:"3600" yaml:"cache-clean-interval"` // clean interval for cache, unit: s, default: 1h
	CacheAllowTimeGap  int    `default:"1" yaml:"cache-allow-time-gap"`    // when query end time - cache end time <= allow gap: not update cache, unit: s, default: 1s
}

Jump to

Keyboard shortcuts

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