From ef08fe7a2669c8ef84a63e54a279c840208d0a87 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 17 Sep 2008 13:42:59 +0200 Subject: [PATCH] collection3/etc/collection.conf: Added some mysql stuff. --- contrib/collection3/etc/collection.conf | 123 +++++++++++++++++++++++- 1 file changed, 122 insertions(+), 1 deletion(-) diff --git a/contrib/collection3/etc/collection.conf b/contrib/collection3/etc/collection.conf index a836cf25..bf5a6220 100644 --- a/contrib/collection3/etc/collection.conf +++ b/contrib/collection3/etc/collection.conf @@ -1,5 +1,5 @@ GraphWidth 400 -UnixSockAddr "/var/run/collectd-unixsock" +#UnixSockAddr "/var/run/collectd-unixsock" Module GenericStacked DataSources count @@ -238,6 +238,127 @@ UnixSockAddr "/var/run/collectd-unixsock" Color buffered ffb000 Color used ff0000 + + Module GenericStacked + DataSources value + RRDTitle "MySQL commands" + RRDVerticalLabel "Invocations" + RRDFormat "%6.2lf" + + DSName admin_commands admin_commands + DSName alter_table alter_table + DSName begin begin + DSName change_db change_db + DSName check check + DSName commit commit + DSName create_db create_db + DSName create_table create_table + DSName delete delete + DSName drop_db drop_db + DSName drop_table drop_table + DSName flush flush + DSName grant grant + DSName insert insert + DSName insert_select insert_select + DSName lock_tables lock_tables + DSName optimize optimize + DSName rename_table rename_table + DSName replace replace + DSName revoke revoke + DSName select select + DSName set_option set_option + DSName show_create_table show_create_table + DSName show_databases show_databases + DSName show_fields show_fields + DSName show_keys show_keys + DSName show_master_status show_master_status + DSName show_processlist show_processlist + DSName show_slave_hosts show_slave_hosts + DSName show_status show_status + DSName show_tables show_tables + DSName show_triggers show_triggers + DSName show_variables show_variables + DSName unlock_tables unlock_tables + DSName update update + DSName update_multi update_multi + + Order admin_commands alter_table begin change_db check commit create_db create_table delete drop_db drop_table flush grant insert insert_select lock_tables optimize rename_table replace revoke select set_option show_create_table show_databases show_fields show_keys show_master_status show_processlist show_slave_hosts show_status show_tables show_triggers show_variables unlock_tables update update_multi + + Color admin_commands ff0000 + Color alter_table ff002a + Color begin ff0055 + Color change_db ff007f + Color check ff00aa + Color commit ff00d4 + Color create_db ff00ff + Color create_table d400ff + Color delete aa00ff + Color drop_db 7f00ff + Color drop_table 5400ff + Color flush 2a00ff + Color grant 0000ff + Color insert 002aff + Color insert_select 0055ff + Color lock_tables 007fff + Color optimize 00a9ff + Color rename_table 00d4ff + Color replace 00ffff + Color revoke 00ffd4 + Color select 00ffa9 + Color set_option 00ff7f + Color show_create_table 00ff55 + Color show_databases 00ff2a + Color show_fields 00ff00 + Color show_keys 2aff00 + Color show_master_status 54ff00 + Color show_processlist 7fff00 + Color show_slave_hosts aaff00 + Color show_status d4ff00 + Color show_tables ffff00 + Color show_triggers ffd400 + Color show_variables ffaa00 + Color unlock_tables ff7f00 + Color update ff5400 + Color update_multi ff2a00 + + + Module GenericStacked + DataSources value + RRDTitle "MySQL handler" + RRDVerticalLabel "Invocations" + RRDFormat "%6.2lf" + DSName commit commit + DSName delete delete + DSName read_first read_first + DSName read_key read_key + DSName read_next read_next + DSName read_prev read_prev + DSName read_rnd read_rnd + DSName read_rnd_next read_rnd_next + DSName update update + DSName write write + Order commit delete read_first read_key read_next read_prev read_rnd read_rnd_next update write + Color commit ff0000 + Color delete ff0099 + Color read_first cc00ff + Color read_key 3200ff + Color read_next 0065ff + Color read_prev 00ffff + Color read_rnd 00ff65 + Color read_rnd_next 33ff00 + Color update cbff00 + Color write ff9800 + + + Module GenericIO + DataSources rx tx + DSName rx RX + DSName tx TX + RRDTitle "MySQL Traffic" + RRDVerticalLabel "Bits per second" + RRDFormat "%5.1lf%s" + Scale 8 + DataSources percent DSName percent Percent -- 2.30.2