consul_exporter

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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

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 (c *Config) CommonConfig() config.Common

func (*Config) Name added in v0.10.0

func (c *Config) Name() string

func (*Config) NewIntegration added in v0.10.0

func (c *Config) NewIntegration(l log.Logger) (integrations.Integration, error)

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler for Config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳