mysql

package
v0.0.0-...-54d14c8 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Counters = map[string]string{
	"Connections":              "net.connections",
	"Innodb_data_reads":        "innodb.data_reads",
	"Innodb_data_writes":       "innodb.data_writes",
	"Innodb_os_log_fsyncs":     "innodb.os_log_fsyncs",
	"Innodb_row_lock_waits":    "innodb.row_lock_waits",
	"Innodb_row_lock_time":     "innodb.row_lock_time",
	"Innodb_mutex_spin_waits":  "innodb.mutex_spin_waits",
	"Innodb_mutex_spin_rounds": "innodb.mutex_spin_rounds",
	"Innodb_mutex_os_waits":    "innodb.mutex_os_waits",
	"Slow_queries":             "performance.slow_queries",
	"Questions":                "performance.questions",
	"Queries":                  "performance.queries",
	"Com_select":               "performance.com_select",
	"Com_insert":               "performance.com_insert",
	"Com_update":               "performance.com_update",
	"Com_delete":               "performance.com_delete",
	"Com_insert_select":        "performance.com_insert_select",
	"Com_update_multi":         "performance.com_update_multi",
	"Com_delete_multi":         "performance.com_delete_multi",
	"Com_replace_select":       "performance.com_replace_select",
	"Qcache_hits":              "performance.qcache_hits",
	"Created_tmp_tables":       "performance.created_tmp_tables",
	"Created_tmp_disk_tables":  "performance.created_tmp_disk_tables",
	"Created_tmp_files":        "performance.created_tmp_files",
}

Counters - XXX

View Source
var Gauges = map[string]string{
	"Max_used_connections":     "net.max_connections",
	"Open_tables":              "performance.open_tables",
	"Open_files":               "performance.open_files",
	"Table_locks_waited":       "performance.table_locks_waited",
	"Threads_connected":        "performance.threads_connected",
	"Innodb_current_row_locks": "innodb.current_row_locks",
}

Gauges - XXX

View Source
var SlowQueriesSQL = `` /* 295-byte string literal not displayed */

SlowQueriesSQL - XXX

View Source
var TablesSizeSQL = `` /* 438-byte string literal not displayed */

TablesSizeSQL - XXX

Functions

This section is empty.

Types

type Config

type Config struct {
	Host string
	DB   string
}

Config - XXX

type MySQL

type MySQL struct {
	Config Config
}

MySQL - XXX

func (*MySQL) Collect

func (m *MySQL) Collect() (interface{}, error)

Collect - XXX

func (*MySQL) Description

func (m *MySQL) Description() string

Description - XXX

func (*MySQL) SampleConfig

func (m *MySQL) SampleConfig() string

SampleConfig - XXX

func (*MySQL) SetConfigDefaults

func (m *MySQL) SetConfigDefaults() error

SetConfigDefaults - XXX

func (*MySQL) Start

func (m *MySQL) Start() error

Start - XXX

func (*MySQL) Stop

func (m *MySQL) Stop()

Stop - XXX

type PerformanceStruct

type PerformanceStruct struct {
	TableSizeData   `json:"tables_size"`
	SlowQueriesData `json:"slow_queries"`
	Gauges          map[string]interface{} `json:"gauges"`
	Counters        map[string]interface{} `json:"counters"`
}

PerformanceStruct - XXX

func (PerformanceStruct) String

func (p PerformanceStruct) String() string

type SlowQueriesData

type SlowQueriesData struct {
	Headers []string      `json:"headers"`
	Data    []interface{} `json:"data"`
}

SlowQueriesData - XXX

type TableSizeData

type TableSizeData struct {
	Headers []string      `json:"headers"`
	Data    []interface{} `json:"data"`
}

TableSizeData - XXX

Jump to

Keyboard shortcuts

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