mpmysqlrouter

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do()

Types

type MRPlugin

type MRPlugin struct {
	Prefix   string
	MRClient *mysqlrouter.Client
}

MRPlugin is the prefix of struct of graph

func (MRPlugin) FetchMetrics

func (mr MRPlugin) FetchMetrics() (map[string]float64, error)

FetchMetrics set metrics from MySQL Router

func (MRPlugin) GraphDefinition

func (mr MRPlugin) GraphDefinition() map[string]mp.Graphs

GraphDefinition return struct of graph

func (MRPlugin) MetricKeyPrefix

func (mr MRPlugin) MetricKeyPrefix() string

MetricKeyPrefix is set prefix of metrics

func (MRPlugin) Prepare

func (mr MRPlugin) Prepare()

Prepare define struct of metrics

Jump to

Keyboard shortcuts

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