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 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
Click to show internal directories.
Click to hide internal directories.