Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { KubeConfig *rest.Config KubeClient *kubernetes.Clientset AgentKubeClient *agentclientset.Clientset MetricsClient *metrics.Clientset Settings ConfigSettings `yaml:"settings"` Alarms ConfigAlarms `yaml:"alarms"` Links ConfigLinks `yaml:"links"` }
Config definition
func GetDefaultConfig ¶ added in v1.7.0
func GetDefaultConfig() *Config
GetDefaultConfig returns default config
func (*Config) GetRunOnce ¶ added in v1.6.0
func (*Config) Load ¶ added in v1.6.0
func (cfg *Config) Load()
Load reads config from file, envs or flags
func (*Config) SetConfigFile ¶ added in v1.6.0
SetConfigFile set config file path and read it into struct
func (*Config) SetKubeConfig ¶ added in v1.6.0
SetKubeConfig override default kube config
func (*Config) SetRunOnce ¶ added in v1.6.0
type ConfigAlarmSetting ¶ added in v1.2.0
ConfigAlarmSetting definition
type ConfigAlarmSettingResources ¶ added in v1.5.0
type ConfigAlarmSettingResources struct { Enabled bool `yaml:"enabled"` CPU ConfigAlarmSettingWithThreshold `yaml:"cpu"` Memory ConfigAlarmSettingWithThreshold `yaml:"memory"` }
ConfigAlarmSettingResources definition
type ConfigAlarmSettingWithThreshold ¶ added in v1.2.0
type ConfigAlarmSettingWithThreshold struct { Enabled bool `yaml:"enabled"` Priority string `yaml:"priority"` Threshold int32 `yaml:"priority"` }
ConfigAlarmSettingWithThreshold definition
type ConfigAlarms ¶ added in v1.2.0
type ConfigAlarms struct { Cluster ConfigAlarmSetting `yaml:"cluster"` Pods ConfigAlarmsPods `yaml:"pods"` Nodes ConfigAlarmsNodes `yaml:"nodes"` }
ConfigAlarms definition
type ConfigAlarmsNodes ¶ added in v1.2.0
type ConfigAlarmsNodes struct { Enabled bool `yaml:"enabled"` Terminate ConfigAlarmSetting `yaml:"terminate"` Resources ConfigAlarmSettingResources `yaml:"resources"` }
ConfigAlarmsNodes definition
type ConfigAlarmsPods ¶ added in v1.2.0
type ConfigAlarmsPods struct { Enabled bool `yaml:"enabled"` Terminate ConfigAlarmSetting `yaml:"terminate"` Waiting ConfigAlarmSetting `yaml:"waiting"` Restarts ConfigAlarmSettingWithThreshold `yaml:"restarts"` Resources ConfigAlarmSettingResources `yaml:"resources"` }
ConfigAlarmsPods definition
type ConfigLinks ¶ added in v1.2.0
type ConfigLinks struct { Pods []ConfigLinksSetting `yaml:"pods"` Nodes []ConfigLinksSetting `yaml:"nodes"` }
ConfigLinks definition
type ConfigLinksSetting ¶ added in v1.3.0
ConfigLinksSetting definition
type ConfigSettings ¶ added in v1.2.0
type ConfigSettings struct { APIKey string `yaml:"apiKey"` KubeConfig string `yaml:"kubeconfig"` Master string `yaml:"master"` Insecure bool `yaml:"insecure"` Namespace string `yaml:"namespace"` Port int `yaml:"port"` Log ConfigSettingsLog `yaml:"log"` ElectionID string `yaml:"electionID"` CheckInterval string `yaml:"checkInterval"` }
ConfigSettings definition
type ConfigSettingsLog ¶ added in v1.2.0
ConfigSettingsLog definition
Click to show internal directories.
Click to hide internal directories.