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 ¶
func New ¶
func New(log log.Logger, c *Config) (integrations.Integration, error)
New creates a new consul_exporter integration. The integration scrapes metrics from a consul process.
Types ¶
type Config ¶
type Config struct {
Common 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) CommonConfig ¶
func (*Config) NewIntegration ¶ added in v0.10.0
func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error)
func (*Config) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler for Config.
Click to show internal directories.
Click to hide internal directories.