Github - nicolargo/glances
Docs - glances
Glances 是一个用 Python 编写的系统监控工具.

1. Glances 依赖项
python 2.7,>=3.4psutil>=5.3.0(better with latest version)
Optional dependencies:
bernhard(for the Riemann export module)bottle(for Web server mode)cassandra-driver(for the Cassandra export module)couchdb(for the CouchDB export module)docker(for the Docker monitoring support) [Linux/macOS-only]elasticsearch(for the Elastic Search export module)hddtemp(for HDD temperature monitoring support) [Linux-only]influxdb(for the InfluxDB export module)kafka-python(for the Kafka export module)netifaces(for the IP plugin)nvidia-ml-py3(for the GPU plugin)pika(for the RabbitMQ/ActiveMQ export module)potsdb(for the OpenTSDB export module)prometheus_client(for the Prometheus export module)py-cpuinfo(for the Quicklook CPU info module)pygal(for the graph export module)pymdstat(for RAID support) [Linux-only]pySMART.smartx(for HDD Smart support) [Linux-only]pysnmp(for SNMP support)pystache(for the action script feature)pyzmq(for the ZeroMQ export module)requests(for the Ports, Cloud plugins and RESTful export module)scandir(for the Folders plugin) [Only for Python < 3.5]statsd(for the StatsD export module)wifi(for the wifi plugin) [Linux-only]zeroconf(for the autodiscover mode)
2. 安装与使用
Ubuntu:
sudo apt install glances #可能不是最新版本或者:
sudo pip install glances
# 或
curl -L https://bit.ly/glances | /bin/bash带可选功能的安装:
sudo pip install glances[action,browser,cloud,cpuinfo,chart,docker,export,folders,gpu,ip,raid,snmp,web,wifi]简单使用:
终端输入:
glances更多用法可见 Docs - glances.