modify some default metrics for mysql plugin
This commit is contained in:
parent
cd583ed558
commit
20063541bb
|
@ -1,50 +1,51 @@
|
||||||
package mysql
|
package mysql
|
||||||
|
|
||||||
var STATUS_VARS = map[string]struct{}{
|
var STATUS_VARS = map[string]struct{}{
|
||||||
"uptime": {},
|
"uptime": {},
|
||||||
"prepared_stmt_count": {}, // command metrics
|
"prepared_stmt_count": {}, // command metrics
|
||||||
"slow_queries": {},
|
"slow_queries": {},
|
||||||
"questions": {},
|
"questions": {},
|
||||||
"queries": {},
|
"queries": {},
|
||||||
"com_select": {},
|
"com_select": {},
|
||||||
"com_insert": {},
|
"com_insert": {},
|
||||||
"com_update": {},
|
"com_update": {},
|
||||||
"com_delete": {},
|
"com_delete": {},
|
||||||
"com_replace": {},
|
"com_replace": {},
|
||||||
"com_load": {},
|
"com_load": {},
|
||||||
"com_insert_select": {},
|
"com_insert_select": {},
|
||||||
"com_update_multi": {},
|
"com_update_multi": {},
|
||||||
"com_delete_multi": {},
|
"com_delete_multi": {},
|
||||||
"com_replace_select": {},
|
"com_replace_select": {},
|
||||||
"connections": {}, // connection metrics
|
"connections": {}, // connection metrics
|
||||||
"max_used_connections": {},
|
"max_used_connections": {},
|
||||||
"aborted_clients": {},
|
"aborted_clients": {},
|
||||||
"aborted_connects": {},
|
"aborted_connects": {},
|
||||||
"open_files": {}, // table cache metrics
|
"open_files": {}, // table cache metrics
|
||||||
"open_tables": {},
|
"open_tables": {},
|
||||||
"bytes_sent": {}, // network metrics
|
"bytes_sent": {}, // network metrics
|
||||||
"bytes_received": {},
|
"bytes_received": {},
|
||||||
"qcache_hits": {}, // query cache metrics
|
"qcache_hits": {}, // query cache metrics
|
||||||
"qcache_inserts": {},
|
"qcache_inserts": {},
|
||||||
"qcache_lowmem_prunes": {},
|
"qcache_lowmem_prunes": {},
|
||||||
"table_locks_waited": {}, // table lock metrics
|
"table_locks_waited": {}, // table lock metrics
|
||||||
"table_locks_waited_rate": {},
|
"table_locks_waited_rate": {},
|
||||||
"created_tmp_tables": {}, // temporary table metrics
|
"created_tmp_tables": {}, // temporary table metrics
|
||||||
"created_tmp_disk_tables": {},
|
"created_tmp_disk_tables": {},
|
||||||
"created_tmp_files": {},
|
"created_tmp_files": {},
|
||||||
"threads_connected": {}, // thread metrics
|
"threads_connected": {}, // thread metrics
|
||||||
"threads_running": {},
|
"threads_running": {},
|
||||||
"key_buffer_bytes_unflushed": {}, // myisam metrics
|
"key_blocks_used": {}, // myisam metrics
|
||||||
"key_buffer_bytes_used": {},
|
"key_blocks_unused": {},
|
||||||
"key_read_requests": {},
|
"key_blocks_not_flushed": {},
|
||||||
"key_reads": {},
|
"key_read_requests": {},
|
||||||
"key_write_requests": {},
|
"key_reads": {},
|
||||||
"key_writes": {},
|
"key_write_requests": {},
|
||||||
|
"key_writes": {},
|
||||||
}
|
}
|
||||||
|
|
||||||
var VARIABLES_VARS = map[string]struct{}{
|
var VARIABLES_VARS = map[string]struct{}{
|
||||||
"key_buffer_size": {},
|
"key_buffer_size": {},
|
||||||
"key_cache_utilization": {},
|
"key_cache_block_size": {},
|
||||||
"max_connections": {},
|
"max_connections": {},
|
||||||
"max_prepared_stmt_count": {},
|
"max_prepared_stmt_count": {},
|
||||||
"query_cache_size": {},
|
"query_cache_size": {},
|
||||||
|
|
Loading…
Reference in New Issue