Skip to content

Commit

Permalink
support 'LPs' columns of 'command' section for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
deep011 committed Oct 12, 2017
1 parent 9665a33 commit fe541c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,8 @@ def get_mysql_status_for_server(server):
StatusColumn("DMPs", "delete_multi_per_second", 0, column_flags_speed, field_handler_common,["Com_delete_multi"], "Delete commands per second that use multiple-table syntax. Collected from 'Com_delete_multi'."),
StatusColumn("UMPs", "update_multi_per_second", 0, column_flags_speed, field_handler_common,["Com_update_multi"], "Update commands per second that use multiple-table syntax. Collected from 'Com_update_multi'."),
StatusColumn("TPs", "transactions_per_second", 0, column_flags_speed, field_handler_common, ["Com_commit", "Com_rollback"], "Transactions per second. Collected from the sum of 'Com_commit' and 'Com_rollback'."),
StatusColumn("DIUPs", "dml_per_second", 0, column_flags_speed, field_handler_common,["Com_delete","Com_insert","Com_update"], "DDL(delete+insert+update) commands per second. Collected from the sum of 'Com_delete', 'Com_insert' and 'Com_update'.")
StatusColumn("DIUPs", "dml_per_second", 0, column_flags_speed, field_handler_common,["Com_delete","Com_insert","Com_update"], "DDL(delete+insert+update) commands per second. Collected from the sum of 'Com_delete', 'Com_insert' and 'Com_update'."),
StatusColumn("LPs", "load_per_second", 0, column_flags_speed, field_handler_common,["Com_load"], "Load commands per second. Collected from 'Com_load'.")
], [get_mysql_status],["TPs","QPs","DPs","IPs","UPs","DIUPs"],
"mysql commands status, collect from \'show global status\'")

Expand Down

0 comments on commit fe541c7

Please sign in to comment.