galera_status

package
v0.0.0-...-be347a3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package galera_status fetches MySQL Galera server status metrics.

For more information on the query it uses, see: http://dev.mysql.com/doc/refman/5.7/en/show-status.html http://galeracluster.com/documentation-webpages/galerastatusvariables.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(base mb.BaseMetricSet) (mb.MetricSet, error)

New create a new instance of the MetricSet Loads query_mode config setting from the config file

Types

type MetricSet

type MetricSet struct {
	mb.BaseMetricSet
	// contains filtered or unexported fields
}

MetricSet for fetching Galera-MySQL server status

func (*MetricSet) Close

func (m *MetricSet) Close() error

Close closes the database connection and prevents future queries.

func (*MetricSet) Fetch

func (m *MetricSet) Fetch(reporter mb.ReporterV2) error

Fetch methods implements the data gathering and data conversion to the right format It returns the event which is then forward to the output.

Jump to

Keyboard shortcuts

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