Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuth ¶
type BasicAuth struct { Username string `yaml:"username" json:"username"` Password string `yaml:"password,omitempty" json:"password,omitempty"` }
BasicAuth is a copy of prometheus/common/config.BasicAuth with `Secret` fields replaced with strings to enable marshaling without obfuscation
type HTTPConfig ¶
type HTTPConfig struct { // The HTTP basic authentication credentials for the targets. BasicAuth *BasicAuth `yaml:"basic_auth,omitempty" json:"basic_auth,omitempty"` // The bearer token for the targets. BearerToken string `yaml:"bearer_token,omitempty" json:"bearer_token,omitempty"` // TODO: Support file storage //BearerTokenFile string `yaml:"bearer_token_file,omitempty"` // HTTP proxy server to use to connect to the targets. ProxyURL string `yaml:"proxy_url,omitempty" json:"proxy_url,omitempty"` // TLSConfig to use to connect to the targets. TLSConfig TLSConfig `yaml:"tls_config,omitempty" json:"tls_config,omitempty"` }
HTTPConfig is a copy of prometheus/common/config.HTTPClientConfig with `Secret` fields replaced with strings to enable marshaling without obfuscation
type TLSConfig ¶
type TLSConfig struct { // Used to verify the hostname for the targets. ServerName string `yaml:"server_name,omitempty" json:"server_name,omitempty"` // Disable target certificate validation. InsecureSkipVerify bool `yaml:"insecure_skip_verify" json:"insecure_skip_verify,omitempty"` }
TLSConfig is a copy of prometheus/common/config.TLSConfig without file fields since storing files is not supported by alertmanager-configurer yet
Click to show internal directories.
Click to hide internal directories.