Crates.io | docker-stats |
lib.rs | docker-stats |
version | 0.1.1 |
source | src |
created_at | 2024-03-01 20:21:08.518323 |
updated_at | 2024-03-01 20:23:24.584396 |
description | Visualize container stats with beautiful, real-time charts directly in your terminal. |
homepage | |
repository | https://github.com/rafaelrcamargo/ds |
max_upload_size | |
id | 1159212 |
size | 201,481 |
ds
- Real-time Stats with Terminal ChartsVisualize container stats with beautiful, real-time charts directly in your terminal.
[!IMPORTANT] This is a WIP,
main
should be stable, but keep in mind this is changing constantly. Thanks! :)
ds
?ds
brings colors and moving charts to your system analysis.[!NOTE] There's a "beta" version of this tool available on crates.io. You can install it with
cargo install ds
.
Ensure you have Cargo installed. Then, clone this repo:
git clone https://github.com/rafaelrcamargo/ds
Then just cd
into the directory and run:
cargo run -- <ARGS> # For development
In the project directory, run:
cargo run --release -- <ARGS> # For production
Then add this command to your $PATH
, you can run:
# May require sudo
mv target/release/ds /usr/local/bin
To use it with the default settings, just run:
ds
This is akin to docker stats.
For more options, you can run:
ds -h
Some examples of how you can use this tool.
For a basic overview of all containers in a space-saving format:
ds -c
To see detailed stats for a specific container, including NET and IO charts:
ds -f 5f03524a8fbe api-1
Some things that are bad, but expected.
I know... It is slow to start, but that's it. This is the time docker stats
takes to run, it has to hook up to the container and get the realtime stats. As for today I have tested it with OrbStack and Docker Desktop, the delay seems to be the same, but I'll keep looking into it.
network_mode: host
From the GIF you can also note that the NET
chart is not moving, but this is expected there. This containers are running in network_mode: host
and the NET
chart will only be populated if you're using the bridge
network.
Ps: If you use Mac and think I'm completely out of my mind for the
network_mode: host
above, I know. It's a running topic on the Docker Desktop for Mac and yet not supported. You can follow the discussion here. And this was the main reason I started looking into OrbStack.
This project is licensed under the Apache License 2.0.