|
47 | 47 | 'Created_tmp_disk_tables': 'counter', |
48 | 48 | 'Created_tmp_files': 'counter', |
49 | 49 | 'Created_tmp_tables': 'counter', |
50 | | - 'Handler_commit': 'counter', |
51 | | - 'Handler_delete': 'counter', |
52 | | - 'Handler_discover': 'counter', |
53 | | - 'Handler_prepare': 'counter', |
54 | | - 'Handler_read_first': 'counter', |
55 | | - 'Handler_read_key': 'counter', |
56 | | - 'Handler_read_last': 'counter', |
57 | | - 'Handler_read_next': 'counter', |
58 | | - 'Handler_read_prev': 'counter', |
59 | | - 'Handler_read_rnd': 'counter', |
60 | | - 'Handler_read_rnd_next': 'counter', |
61 | | - 'Handler_rollback': 'counter', |
62 | | - 'Handler_savepoint': 'counter', |
63 | | - 'Handler_savepoint_rollback': 'counter', |
64 | | - 'Handler_update': 'counter', |
65 | | - 'Handler_write': 'counter', |
66 | 50 | 'Innodb_buffer_pool_pages_data': 'gauge', |
67 | 51 | 'Innodb_buffer_pool_pages_dirty': 'gauge', |
68 | 52 | 'Innodb_buffer_pool_pages_free': 'gauge', |
@@ -500,9 +484,10 @@ def read_callback(): |
500 | 484 |
|
501 | 485 | mysql_status = fetch_mysql_status(conn) |
502 | 486 | for key in mysql_status: |
503 | | - # collect anything beginning with Com_. these change regularly between |
504 | | - # mysql versions and this is easier than a fixed list |
505 | | - if key[:4] == 'Com_': |
| 487 | + # collect anything beginning with Com_/Handler_ as these change |
| 488 | + # regularly between mysql versions and this is easier than a fixed |
| 489 | + # list |
| 490 | + if key.split('_', 2)[0] in ['Com', 'Handler']: |
506 | 491 | ds_type = 'counter' |
507 | 492 | elif key in MYSQL_STATUS_VARS: |
508 | 493 | ds_type = MYSQL_STATUS_VARS[key] |
|
0 commit comments