metrics

package
v1.7.1-0...-cd42b1d Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

Metrics implements plugin.Metrics.

func New

func New(dsn string) *Metrics

New returns *Metrics.

func (Metrics) Args

func (Metrics) Args() []string

Args is a list of additional arguments passed to exporter executable.

func (Metrics) Cluster

func (Metrics) Cluster() string

Cluster defines cluster name for the target.

func (Metrics) DefaultPort

func (Metrics) DefaultPort() int

DefaultPort returns default port.

func (Metrics) Environment

func (m Metrics) Environment() []string

Environment is a list of additional environment variables passed to exporter executable.

func (Metrics) Executable

func (Metrics) Executable() string

Executable is a name of exporter executable under PMMBaseDir.

func (*Metrics) Init

func (m *Metrics) Init(ctx context.Context, pmmUserPassword string) (*plugin.Info, error)

Init initializes plugin.

func (Metrics) KV

func (m Metrics) KV() map[string][]byte

KV is a list of additional Key-Value data stored in consul.

func (Metrics) Multiple

func (Metrics) Multiple() bool

Multiple returns true if exporter can be added multiple times.

func (Metrics) Name

func (Metrics) Name() string

Name of the exporter.

Jump to

Keyboard shortcuts

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