memcached

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	Address: "localhost:11211",
	Timeout: time.Second,
}

DefaultArguments holds the default arguments for the prometheus.exporter.memcached component.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	// Address is the address of the memcached server to connect to (host:port).
	Address string `alloy:"address,attr,optional"`

	// Timeout is the timeout for the memcached exporter to use when connecting to the
	// memcached server.
	Timeout time.Duration `alloy:"timeout,attr,optional"`

	// TLSConfig is used to configure TLS for connection to memcached.
	TLSConfig *config.TLSConfig `alloy:"tls_config,block,optional"`
}

Arguments configures the prometheus.exporter.memcached component.

func (Arguments) Convert

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

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

func (Arguments) Validate

func (a Arguments) Validate() error

Validate implements syntax.Validator.

Jump to

Keyboard shortcuts

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