dstat is a versatile resource statistics tool that combines the functionality of vmstat, iostat, netstat, and ifstat. It provides real-time system resource information in a colorful, customizable display.
📑 Table of Contents
Key Features
- Modular: Combine different stat types
- Real-Time: Live system monitoring
- Colorful Output: Easy-to-read display
- CSV Export: Output for further analysis
- Plugins: Extensible functionality
Installation
Install dstat on Ubuntu:
sudo apt update
sudo apt install dstat
Usage Examples
Common dstat commands:
# Basic usage
dstat
# CPU, memory, disk, net
dstat -cdnm
# Top CPU and memory consumers
dstat --top-cpu --top-mem
# Output to CSV
dstat -cdnm --output stats.csv
# Show specific disk
dstat -d -D sda,sdb
# Time-based output
dstat -t -c 5 10
Benefits
dstat consolidates multiple monitoring tools into one. Its modular design and colorful output make system monitoring intuitive and efficient.
Was this article helpful?