WARNING This project is in its very initial development stage, not all
features are implemented yet, usage API still subjected to change until 1.0.0
A Tmux plugin to monitor Docker containers running on a remote server.
- Monitor Docker containers on a remote server
- Display the number of containers that are UP, Down, Stopped, Failed, and Died
- Show CPU usage and Memory usage for each container
- Configurable update interval
-
Install the Tmux Plugin Manager (TPM) if you haven't already.
-
Add the following line to your
~/.tmux.conf
file:set -g @plugin 'yourusername/tmux-monitor'
-
Press
prefix + I
to install the plugin.
Create a configuration file at $HOME/.tmux-monitor
with the following content:
SERVER_ADDRESS=your_server_address
SERVER_PORT=22
SERVER_USER=your_username
SERVER_PASSWORD=your_password
UPDATE_INTERVAL=30
Replace the placeholder values with your actual server information:
SERVER_ADDRESS
: The IP address or hostname of your remote serverSERVER_PORT
: The SSH port of your remote server (default is 22)SERVER_USER
: Your SSH usernameSERVER_PASSWORD
: Your SSH passwordUPDATE_INTERVAL
: The interval in seconds between updates (default is 30)
Once installed and configured, the plugin will automatically start monitoring your Docker containers. The status will be displayed in your tmux status bar.
To build the plugin from source:
- Ensure you have Go installed on your system.
- Clone this repository.
- Run
make deps
to fetch the required dependencies. - Run
make build
to build the plugin. - Run
make install
to install the plugin to your tmux plugins directory.
To contribute to this project:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.