mysql

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2014 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	mm.Config
	Status            map[string]string // SHOW STATUS variables to collect, case-sensitive
	InnoDB            []string          // SET GLOBAL innodb_monitor_enable="<value>"
	UserStats         bool              // SET GLOBAL userstat=ON|OFF
	UserStatsIgnoreDb string
}

type Monitor

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

func NewMonitor

func NewMonitor(name string, config *Config, logger *pct.Logger, conn mysql.Connector) *Monitor

func (*Monitor) Config

func (m *Monitor) Config() interface{}

@goroutine[0]

func (*Monitor) GetInnoDBMetrics

func (m *Monitor) GetInnoDBMetrics(conn *sql.DB, c *mm.Collection) error

@goroutine[2]

func (*Monitor) GetShowStatusMetrics

func (m *Monitor) GetShowStatusMetrics(conn *sql.DB, c *mm.Collection) error

@goroutine[2]

func (*Monitor) Start

func (m *Monitor) Start(tickChan chan time.Time, collectionChan chan *mm.Collection) error

@goroutine[0]

func (*Monitor) Status

func (m *Monitor) Status() map[string]string

@goroutine[0]

func (*Monitor) Stop

func (m *Monitor) Stop() error

@goroutine[0]

func (*Monitor) TickChan

func (m *Monitor) TickChan() chan time.Time

@goroutine[0]

Jump to

Keyboard shortcuts

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