@cryptotaxi247 / netdata-1 / commits / dfa3c9064

add mysql deadlock chart (#6115)

Oleksii Kravchenko committed May 27, 2019 at 11:50 UTC dfa3c9064eafaeb0b93be0ba73c63f6088ba7597
2 files changed +13
collectors/python.d.plugin/mysql/mysql.chart.py
+9
@@ -90,6 +90,7 @@ GLOBAL_STATS = [
90 'Innodb_buffer_pool_write_requests',
91 'Innodb_buffer_pool_reads',
92 'Innodb_buffer_pool_wait_free',
93 + 'Innodb_deadlocks',
94 'Qcache_hits',
95 'Qcache_lowmem_prunes',
96 'Qcache_inserts',
@@ -178,6 +179,7 @@ ORDER = [
179 'innodb_os_log_fsync_writes',
180 'innodb_os_log_io',
181 'innodb_cur_row_lock',
182 + 'innodb_deadlocks',
183 'innodb_rows',
184 'innodb_buffer_pool_pages',
185 'innodb_buffer_pool_flush_pages_requests',
@@ -382,6 +384,13 @@ CHARTS = {
384 ['Innodb_row_lock_current_waits', 'current_waits', 'absolute']
385 ]
386 },
387 + 'innodb_deadlocks': {
388 + 'options': [None, 'InnoDB Deadlocks', 'operations/s', 'innodb',
389 + 'mysql.innodb_deadlocks', 'area'],
390 + 'lines': [
391 + ['Innodb_deadlocks', 'deadlocks', 'incremental']
392 + ]
393 + },
394 'innodb_rows': {
395 'options': [None, 'InnoDB Row Operations', 'operations/s', 'innodb', 'mysql.innodb_rows', 'area'],
396 'lines': [
web/gui/dashboard_info.js
+4
@@ -1163,6 +1163,10 @@ netdataDashboard.context = {
1163 '</ul>'
1164 },
1165
1166 + 'mysql.innodb_deadlocks': {
1167 + info: 'A deadlock happens when two or more transactions mutually hold and request for locks, creating a cycle of dependencies. For more information about <a href="https://dev.mysql.com/doc/refman/5.7/en/innodb-deadlocks-handling.html" target="_blank">how to minimize and handle deadlocks</a>.'
1168 + },
1169 +
1170 // ------------------------------------------------------------------------
1171 // POSTGRESQL
1172