consul

package
v0.32.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

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,
}

DefaultConfig holds the default settings for the consul_exporter exporter.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server             string        `river:"server,attr,optional"`
	CAFile             string        `river:"ca_file,attr,optional"`
	CertFile           string        `river:"cert_file,attr,optional"`
	KeyFile            string        `river:"key_file,attr,optional"`
	ServerName         string        `river:"server_name,attr,optional"`
	Timeout            time.Duration `river:"timeout,attr,optional"`
	InsecureSkipVerify bool          `river:"insecure_skip_verify,attr,optional"`
	RequestLimit       int           `river:"concurrent_request_limit,attr,optional"`
	AllowStale         bool          `river:"allow_stale,attr,optional"`
	RequireConsistent  bool          `river:"require_consistent,attr,optional"`

	KVPrefix      string `river:"kv_prefix,attr,optional"`
	KVFilter      string `river:"kv_filter,attr,optional"`
	HealthSummary bool   `river:"generate_health_summary,attr,optional"`
}

Config controls the consul_exporter exporter.

func (*Config) Convert

func (c *Config) Convert() *consul_exporter.Config

func (*Config) UnmarshalRiver

func (c *Config) UnmarshalRiver(f func(interface{}) error) error

UnmarshalRiver implements River unmarshalling for Config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL