Skip to content

Commit

Permalink
support 'CMPs' 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 58b4a11 commit ad12403
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 @@ -1761,7 +1761,8 @@ def get_mysql_status_for_server(server):
StatusColumn("TrPs", "truncate_per_second", 0, column_flags_speed, field_handler_common,["Com_truncate"], "Truncate commands per second. Collected from 'Com_truncate'."),
StatusColumn("StartSPs", "start_slave_per_second", 0, column_flags_speed, field_handler_common,["Com_start_slave"], "Start slave commands per second. Collected from 'Com_start_slave'."),
StatusColumn("StopSPs", "stop_slave_per_second", 0, column_flags_speed, field_handler_common,["Com_stop_slave"], "Stop slave commands per second. Collected from 'Com_stop_slave'."),
StatusColumn("KPs", "kill_per_second", 0, column_flags_speed, field_handler_common,["Com_kill"], "Kill commands per second. Collected from 'Com_kill'.")
StatusColumn("KPs", "kill_per_second", 0, column_flags_speed, field_handler_common,["Com_kill"], "Kill commands per second. Collected from 'Com_kill'."),
StatusColumn("CMPs", "change_master_per_second", 0, column_flags_speed, field_handler_common,["Com_change_master"], "Change master commands per second. Collected from 'Com_change_master'.")
], [get_mysql_status],["TPs","QPs","DPs","IPs","UPs","DIUPs"],
"mysql commands status, collect from \'show global status\'")

Expand Down

0 comments on commit ad12403

Please sign in to comment.