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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	DisableTableStats      bool
	DisableTableStatsLimit uint16
	DisableUserStats       bool
	DisableBinlogStats     bool
	DisableProcesslist     bool
}

Flags are Metrics Metrics specific flags.

type Metrics

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

Metrics implements plugin.Metrics.

func New

func New(flags Flags, mysqlFlags mysql.Flags) *Metrics

New returns *Metrics.

func (Metrics) Args

func (m Metrics) Args() []string

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

func (Metrics) Cluster

func (m Metrics) Cluster() string

Cluster defines cluster name for the target.

func (Metrics) DefaultPort

func (m 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 (m 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 (m Metrics) Multiple() bool

Multiple returns true if exporter can be added multiple times.

func (Metrics) Name

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