memcached_exporter

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package memcached_exporter embeds https://github.com/google/memcached_exporter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log log.Logger, c Config) (common.Integration, error)

New creates a new memcached_exporter integration. The integration scrapes metrics from a memcached server.

Types

type Config

type Config struct {
	// Enabled enables the integration.
	Enabled bool `yaml:"enabled"`

	CommonConfig config.Common `yaml:",inline"`

	// MemcachedAddress is the address of the memcached server (host:port).
	MemcachedAddress string `yaml:"memcached_address"`

	// Timeout is the connection timeout for memcached.
	Timeout time.Duration `yaml:"timeout"`
}

Config controls the memcached_exporter integration.

var DefaultConfig Config = Config{
	MemcachedAddress: "localhost:11211",
	Timeout:          time.Second,
}

DefaultConfig is the default config for memcached_exporter.

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