Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func LoadFromFile ¶
func ValidateConfig ¶
ValidateConfig validates the cli and file configs together.
Types ¶
type Config ¶
type Config struct { ListenAddr string `yaml:"listen_addr,omitempty"` KubeConfigFilePath string `yaml:"kube_config_file_path,omitempty"` ClusterConfig *rest.Config `yaml:"-"` RootLogger logr.Logger `yaml:"-"` CollectorSelector *metav1.LabelSelector `yaml:"collector_selector,omitempty"` PromConfig *promconfig.Config `yaml:"config"` AllocationStrategy string `yaml:"allocation_strategy,omitempty"` FilterStrategy string `yaml:"filter_strategy,omitempty"` PrometheusCR PrometheusCRConfig `yaml:"prometheus_cr,omitempty"` PodMonitorSelector map[string]string `yaml:"pod_monitor_selector,omitempty"` ServiceMonitorSelector map[string]string `yaml:"service_monitor_selector,omitempty"` }
func CreateDefaultConfig ¶
func CreateDefaultConfig() Config
type PrometheusCRConfig ¶
Click to show internal directories.
Click to hide internal directories.