config

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RetainOldMetrics = false
)

Variables

View Source
var (
	EnableStressMode = false
)

Functions

This section is empty.

Types

type LunettesConfig

type LunettesConfig struct {
	UserOnlineConfigMap         map[string]string `json:"UserOnlineConfigMap,omitempty"`
	UserAppConfigMap            map[string]string `json:"UserAppConfigMap,omitempty"`
	UserSLAConfigMap            map[string]string `json:"UserSLAConfigMap,omitempty"`
	IgnoredNamespaceForAudit    []string          `json:"IgnoredNamespaceForAudit,omitempty"`
	PostStartHookTimeout        string            `json:"PostStartHookTimeout,omitempty"`
	ShouldIgnoreSinglePod       bool              `json:"ShouldIgnoreSinglePod,string,omitempty"`
	ShouldRetainOldMetrics      bool              `json:"ShouldRetainOldMetrics,string,omitempty"`
	IgnoreDeleteReasonNamespace []string          `json:"IgnoreDeleteReasonNamespace,omitempty"`
}

UserOnlineConfigMap: 用于指定一个特定的 namespace 的在线任务的超时时间,通常由 SRE 来配置 UserAppConfigMap: 用于指定一个特定的 app 的超时时间,通常由 SRE 来配置

例如,"UserSLAConfigMap": {"linkeci":"10m"}则所有SLA<10m的将调整为10min

IgnoredNamespaceForAudit: 用于指定 lunettes 可以忽略的 ns,通常由 测试开发 来配置 PostStartHookTimeout: 用于指定 PostStartHookTimeout 超时时间 ShouldIgnoreSinglePod: 用于指定 "资源交付SLO" 场景下,是否把一个单独的 Pod 给忽略掉

func GlobalLunettesConfig

func GlobalLunettesConfig() *LunettesConfig

Jump to

Keyboard shortcuts

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