diff options
author | Tom Worster <fsb@thefsb.org> | 2017-10-28 16:25:28 -0400 |
---|---|---|
committer | Tom Worster <fsb@thefsb.org> | 2017-10-28 16:25:28 -0400 |
commit | 0a30dd6264ff9168088c5953c4d7fa24293febef (patch) | |
tree | 3d8faefa185805e47d4b79e6b180af7b5a735836 /python.d/mysql.chart.py | |
parent | 50bc048f7bdba4f50666f5c69a7b7c388176f519 (diff) |
add galera charts
Diffstat (limited to 'python.d/mysql.chart.py')
-rw-r--r-- | python.d/mysql.chart.py | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/python.d/mysql.chart.py b/python.d/mysql.chart.py index 98b6636f49..5038981024 100644 --- a/python.d/mysql.chart.py +++ b/python.d/mysql.chart.py @@ -114,8 +114,11 @@ GLOBAL_STATS = [ 'Connection_errors_max_connections', 'Connection_errors_peer_address', 'Connection_errors_select', - 'Connection_errors_tcpwrap'] - + 'Connection_errors_tcpwrap', + 'wsrep_local_recv_queue', + 'wsrep_local_send_queue', + 'wsrep_received', + 'wsrep_replicated'] def slave_seconds(value): try: @@ -148,7 +151,8 @@ ORDER = ['net', 'innodb_buffer_pool_read_ahead', 'innodb_buffer_pool_reqs', 'innodb_buffer_pool_ops', 'qcache_ops', 'qcache', 'qcache_freemem', 'qcache_memblocks', 'key_blocks', 'key_requests', 'key_disk_ops', - 'files', 'files_rate', 'slave_behind', 'slave_status'] + 'files', 'files_rate', 'slave_behind', 'slave_status', + 'galera_writesets', 'galera_queue'] CHARTS = { 'net': { @@ -411,6 +415,18 @@ CHARTS = { 'lines': [ ['Slave_SQL_Running', 'sql_running', 'absolute'], ['Slave_IO_Running', 'io_running', 'absolute'] + ]}, + 'galera_writesets': { + 'options': [None, 'Galera writesets', 'writesets/s', 'galera', 'mysql.galera_writesets', 'line'], + 'lines': [ + ['wsrep_received', 'rx', 'incremental'], + ['wsrep_replicated', 'tx', 'incremental', -1, 1], + ]}, + 'galera_queue': { + 'options': [None, 'Galera queue', 'writesets', 'galera', 'mysql.galera_queue', 'area'], + 'lines': [ + ['wsrep_local_recv_queue', 'rx', 'incremental'], + ['wsrep_local_send_queue', 'tx', 'incremental', -1, 1], ]} } |