<use> 1.linux安装 mysql-python 支撑脚本使用 sudo yum install MySQL-python 2.collectd.conf 新增 <Plugin python> ModulePath "/opt/collectd/include/python" LogTraces true Import "Cobar" <Module Cobar> host 192.168.102.76 port 9066 user test pwd test </Module> </Plugin> 3.types.db 新增 tp_active_count value:GAUGE:0:U tp_task_queue_size value:GAUGE:0:U tp_task_complete_size value:GAUGE:0:U con_net_in value:GAUGE:0:U con_net_out value:GAUGE:0:U con_fc_count value:GAUGE:0:U schema value:GAUGE:0:U table value:GAUGE:0:U