consul

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AllowStale        bool          `toml:"allow_stale"`
	CAFile            string        `toml:"ca_file"`
	CertFile          string        `toml:"cert_file"`
	HealthSummary     bool          `toml:"health_summary"`
	KeyFile           string        `toml:"key_file"`
	Insecure          bool          `toml:"insecure"`
	RequireConsistent bool          `toml:"require_consistent"`
	ServerName        string        `toml:"server_name"`
	Timeout           time.Duration `toml:"timeout"`
	RequestLimit      int           `toml:"request_limit"`
	KV                KVConfig      `toml:"kv"`
	Meta              MetaConfig    `toml:"meta"`
	AgentOnly         bool          `toml:"agent_only"`
}

type Consul

type Consul struct {
}

func (*Consul) ParseConfig

func (*Consul) ParseConfig(baseDir string, bs []byte) (any, error)

func (*Consul) Scrape

func (*Consul) Scrape(ctx context.Context, target string, cfg any, ss *types.Samples) error

type KVConfig

type KVConfig struct {
	Prefix string `toml:"prefix"`
	Filter string `toml:"filter"`
}

type MetaConfig

type MetaConfig struct {
	Filter string `toml:"filter"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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