metrics

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: AGPL-3.0 Imports: 2 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{}

Metrics implements plugin.Metrics.

func New

func New() *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 (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 (Metrics) Init(ctx context.Context, pmmUserPassword string) (*plugin.Info, error)

Init initializes plugin.

func (Metrics) KV

func (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