Documentation
¶
Overview ¶
Package consul_exporter embeds https://github.com/prometheus/consul_exporter
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Server: "http://localhost:8500", Timeout: 500 * time.Millisecond, AllowStale: true, KVFilter: ".*", HealthSummary: true, }
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Enabled enables the integration.
Enabled bool `yaml:"enabled"`
CommonConfig config.Common `yaml:",inline"`
Server string `yaml:"server"`
CAFile string `yaml:"ca_file"`
CertFile string `yaml:"cert_file"`
KeyFile string `yaml:"key_file"`
ServerName string `yaml:"server_name"`
Timeout time.Duration `yaml:"timeout"`
InsecureSkipVerify bool `yaml:"insecure_skip_verify"`
RequestLimit int `yaml:"concurrent_request_limit"`
AllowStale bool `yaml:"allow_stale"`
RequireConsistent bool `yaml:"require_consistent"`
KVPrefix string `yaml:"kv_prefix"`
KVFilter string `yaml:"kv_filter"`
HealthSummary bool `yaml:"generate_health_summary"`
}
Config controls the consul_exporter integration.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler for Config.
Click to show internal directories.
Click to hide internal directories.