@cryptotaxi247 / netdata-1 / commits / 0a30dd626

add galera charts

Tom Worster committed Oct 28, 2017 at 16:25 UTC 0a30dd6264ff9168088c5953c4d7fa24293febef
1 file changed +19 -3
python.d/mysql.chart.py
+19 -3
@@ -114,8 +114,11 @@ GLOBAL_STATS = [
114 'Connection_errors_max_connections',
115 'Connection_errors_peer_address',
116 'Connection_errors_select',
117 - 'Connection_errors_tcpwrap']
118 -
117 + 'Connection_errors_tcpwrap',
118 + 'wsrep_local_recv_queue',
119 + 'wsrep_local_send_queue',
120 + 'wsrep_received',
121 + 'wsrep_replicated']
122
123 def slave_seconds(value):
124 try:
@@ -148,7 +151,8 @@ ORDER = ['net',
151 'innodb_buffer_pool_read_ahead', 'innodb_buffer_pool_reqs', 'innodb_buffer_pool_ops',
152 'qcache_ops', 'qcache', 'qcache_freemem', 'qcache_memblocks',
153 'key_blocks', 'key_requests', 'key_disk_ops',
151 - 'files', 'files_rate', 'slave_behind', 'slave_status']
154 + 'files', 'files_rate', 'slave_behind', 'slave_status',
155 + 'galera_writesets', 'galera_queue']
156
157 CHARTS = {
158 'net': {
@@ -411,6 +415,18 @@ CHARTS = {
415 'lines': [
416 ['Slave_SQL_Running', 'sql_running', 'absolute'],
417 ['Slave_IO_Running', 'io_running', 'absolute']
418 + ]},
419 + 'galera_writesets': {
420 + 'options': [None, 'Galera writesets', 'writesets/s', 'galera', 'mysql.galera_writesets', 'line'],
421 + 'lines': [
422 + ['wsrep_received', 'rx', 'incremental'],
423 + ['wsrep_replicated', 'tx', 'incremental', -1, 1],
424 + ]},
425 + 'galera_queue': {
426 + 'options': [None, 'Galera queue', 'writesets', 'galera', 'mysql.galera_queue', 'area'],
427 + 'lines': [
428 + ['wsrep_local_recv_queue', 'rx', 'incremental'],
429 + ['wsrep_local_send_queue', 'tx', 'incremental', -1, 1],
430 ]}
431 }
432