plugin

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Hostname        string
	Port            string
	Distro          string
	Version         string
	DSN             string
	QuerySource     string
	PMMUserPassword string
}

Info describes plugin.

type Metrics

type Metrics interface {
	// Init initializes plugin and returns Info about database.
	Init(ctx context.Context, pmmUserPassword string) (*Info, error)
	// Name of the exporter.
	// As the time of writing this is limited to linux, mysql, mongodb, proxysql and postgresql.
	Name() string
	// Args is a list of additional arguments passed to exporter executable.
	Args() []string
	// Environment is a list of additional environment variables passed to exporter executable.
	Environment() []string
	// Executable is a name of exporter executable under PMMBaseDir.
	Executable() string
	// KV is a list of additional Key-Value data stored in consul.
	KV() map[string][]byte
	// Cluster defines cluster name for the target.
	Cluster() string
	// Multiple returns true if exporter can be added multiple times.
	Multiple() bool
	// DefaultPort returns default port.
	DefaultPort() int
}

Metrics is a common interface for all exporters.

type Queries

type Queries interface {
	// Init initializes plugin and returns Info about database.
	Init(ctx context.Context, pmmUserPassword string) (*Info, error)
	// Name of the queries.
	// As the time of writing this is limited to mysql and mongodb.
	Name() string
	// InstanceTypeName returns name of instance type used by QAN API.
	// Deprecated: QAN API should be modified and use same value as Name().
	InstanceTypeName() string
	// Config returns pc.QAN, this allows for additional configuration of QAN.
	Config() pc.QAN
}

Queries is a common interface for all Query Analytics plugins.

type QueriesFlags

type QueriesFlags struct {
	DisableQueryExamples bool
}

QueriesFlags Queries specific flags.

Directories

Path Synopsis
linux
proxysql

Jump to

Keyboard shortcuts

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