Skip to main content

A CLI tool for a live view of your docker containers running on a remote server.

Project description

Docker Cluster Monitor - A TUI utility to monitor your docker containers

A TUI tool for a live view of your docker containers running on a remote server. Here's a graphic of it running (refreshes every 5 seconds or so automatically):

Notice that it uses color to communicate outlier values. For example, low CPU is green, middle-of-the-road CPU is cyan, and heavy CPU usage is red. Similarly for memory. The memory limit column reflects the deploy>memory limit in Docker Compose for that container and the percentage reported is for the imposed memory limit rather than the machine physical memory limits.

Usage

To use the tool, it has one command, dockerstatus with a shorter alias ds. If you are running a set of Docker containers (say via Docker Compose) on server my-docker-host, then just run:

dockerstatus my-docker-host

You can optionally pass the username if you're not logging in as root. Here is the full help text (thank you Typer):

 Usage: dockerstatus [OPTIONS] HOST [USERNAME]                          
╭─ Arguments ───────────────────────────────────────────────────────────╮
│ * host     TEXT       The server DNS name or IP address (e.g. 91.7.5.1│                        or google.com). [default: None]  [required]     │
│   username [USERNAME] The username of the ssh user for interacting    │
│                       with the server. [default: root]                │
╰───────────────────────────────────────────────────────────────────────╯
╭─ Options ─────────────────────────────────────────────────────────────╮
| --ssh-config    Whether the host is a SSH config entry or not.        |
| --sudo          Whether to run as the super user or not.              | --help          Show this message and exit.                           │
╰───────────────────────────────────────────────────────────────────────╯

Installation

This package is available on PyPI as dockerclustermon. However, it is ideally used as a CLI tool and not imported into programs. As such, using uv or pipx will be most useful. Take your pick:

uv

uv tool install dockerclustermon

Of course this requires that you have uv installed and in the path.

pipx

pipx install dockerclustermon

And this requires that you have pipx installed and in the path.

Compatibility

Docker Cluster Monitor has been tested against Ubuntu Linux. It should work on any system that supports SSH and has the Docker CLI tools installed. Note that it does not work on the local machine at the moment. PRs are welcome. ;)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dockerclustermon-0.2.4.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dockerclustermon-0.2.4-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file dockerclustermon-0.2.4.tar.gz.

File metadata

  • Download URL: dockerclustermon-0.2.4.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for dockerclustermon-0.2.4.tar.gz
Algorithm Hash digest
SHA256 a9fc6fb250769acc3e13afeb71ee686a064557db21b1808cd6d61e4ba1c7a8c8
MD5 254ab65152849b6d3e3ca4a65dcc9207
BLAKE2b-256 19dd43abdd14d19010ba7070139d46025a339203eed65eb3ccb47b805f46349c

See more details on using hashes here.

File details

Details for the file dockerclustermon-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for dockerclustermon-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8afd186af1f8be4d1fe8b9ecca7aba1acac6e237d841ab9c21c20ae3d28368a0
MD5 7f2d0733c51be404576201c71217509c
BLAKE2b-256 c640eeb3c72bcf3cf4b7df8d6c6c9e3f62dbe0d9417fdfb34fa2743972f1b457

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page