consul

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	Server:        "http://localhost:8500",
	Timeout:       500 * time.Millisecond,
	AllowStale:    true,
	KVFilter:      ".*",
	HealthSummary: true,
}

DefaultArguments holds the default settings for the consul_exporter exporter.

Functions

This section is empty.

Types

type Arguments

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

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

Arguments controls the consul_exporter exporter.

func (*Arguments) Convert

func (a *Arguments) Convert() *consul_exporter.Config

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

Jump to

Keyboard shortcuts

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