Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultConfig is the default configuration that is used when no // configuration file is provided DefaultConfig = &Config{ DefaultModule: "tcp", Modules: map[string]Module{ "tcp": Module{ Prober: "tcp", }, "http": Module{ Prober: "https", }, "https": Module{ Prober: "https", }, "file": Module{ Prober: "file", }, "kubernetes": Module{ Prober: "kubernetes", }, "kubeconfig": Module{ Prober: "kubeconfig", }, }, } )
Functions ¶
Types ¶
type Config ¶
type Config struct { DefaultModule string `yaml:"default_module"` Modules map[string]Module `yaml:"modules"` }
Config configures the exporter
func LoadConfig ¶
LoadConfig loads configuration from a file
type HTTPSProbe ¶
type HTTPSProbe struct {
ProxyURL URL `yaml:"proxy_url,omitempty"`
}
HTTPSProbe configures a https probe
type KubernetesProbe ¶
type KubernetesProbe struct {
Kubeconfig string `yaml:"kubeconfig,omitempty"`
}
KubernetesProbe configures a kubernetes probe
type Module ¶
type Module struct { Prober string `yaml:"prober,omitempty"` Target string `yaml:"target,omitempty"` Timeout time.Duration `yaml:"timeout,omitempty"` TLSConfig TLSConfig `yaml:"tls_config,omitempty"` HTTPS HTTPSProbe `yaml:"https,omitempty"` TCP TCPProbe `yaml:"tcp,omitempty"` Kubernetes KubernetesProbe `yaml:"kubernetes,omitempty"` }
Module configures a prober
type TCPProbe ¶
type TCPProbe struct {
StartTLS string `yaml:"starttls,omitempty"`
}
TCPProbe configures a tcp probe
type TLSConfig ¶
type TLSConfig struct { CAFile string `yaml:"ca_file,omitempty"` CertFile string `yaml:"cert_file,omitempty"` KeyFile string `yaml:"key_file,omitempty"` ServerName string `yaml:"server_name,omitempty"` InsecureSkipVerify bool `yaml:"insecure_skip_verify"` // Renegotiation controls what types of TLS renegotiation are supported. // Supported values: never (default), once, freely. Renegotiation renegotiation `yaml:"renegotiation,omitempty"` }
TLSConfig is a superset of config.TLSConfig that supports TLS renegotiation
Click to show internal directories.
Click to hide internal directories.