Export log to HTML chart.
chart used pyecharts 1.6+
pip install pyecharts
logfile_directory
monitor_index
use Logchart.ini:
python Logchart.py
or
input parameters:
python Logchart.py -d D:\GitHub\log
python Logchart.py -d D:\GitHub\log -m "cn_flush_bio,total write bio"
python Logchart_iostat.py -d D:\GitHub\log -m "rMB/s,wMB/s,r_await,w_await,svctm,util" -g "dm-5,dm-6"
Enjoy it!
yum install dstat
yum install sysstat -y
mkdir -p /root/monitor/log
chmod +x /root/monitor/iomon.sh
crontab -e
0 0 * * * /bin/bash /root/monitor/iomon.sh >>/root/monitor/iomon.log
0 0 * * * /bin/bash /root/monitor/iomon_email.sh >>/root/monitor/iomon_email.log
pyinstaller --add-data=".\datasets;pyecharts\datasets." --add-data=".\templates;pyecharts\render\templates." -F -w Logchart.py
pyinstaller --add-data=".\datasets;pyecharts\datasets." --add-data=".\templates;pyecharts\render\templates." -F -w Logchart_dstat.py
pyinstaller --add-data=".\datasets;pyecharts\datasets." --add-data=".\templates;pyecharts\render\templates." -F -w Logchart_iostat.py