✨ Overview
KubMonitor provides a real-time, high-fidelity dashboard for your Kubernetes clusters directly in your terminal. Inspired by tools like nvitop and btop, it combines cluster quotas with local machine metrics in a slick, responsive TUI (Terminal User Interface).
🚀 Features
- 📊 Real-time Dashboard: Live updates of CPU, Memory, and GPU usage.
- ⚡ Advanced GPU Monitoring: Auto-detects NVIDIA GPU models (H100, A100, V100, etc.) and visualizes detailed usage quotas.
- 📜 Live Log Viewer: Integrated pod log viewer with auto-refresh capability.
- ☸️ Namespace Scoped: Monitor specific Kubernetes namespaces with ease.
- 💻 Hybrid Metrics: View both K8s Cluster Quotas and Local Machine stats side-by-side.
- ✨ Reactive TUI: Built with
Refreshedlayouts using Rich. - 🎨 Monokai Colors: A Monokai-inspired truecolor scheme by default (
--theme classicorKUBMONITOR_THEME=classicfor plain terminal colors). - 🖥️ Cross-Platform: Works seamlessly on Linux, macOS, and Windows.
📦 Installation
Install via pip:
pip install kubmonitor-cli
Or install from source:
git clone https://github.com/vios-s/kubmonitor-cli.git
cd kubmonitor-cli
pip install .
🎮 Usage
Getting Help
View all available options and usage information:
kubmonitor --help
# or
kubmonitor -h
Check the version:
kubmonitor --version
# or
kubmonitor -V
Monitor a Namespace
Simply run the command followed by the target namespace:
kubmonitor <namespace>
Example:
kubmonitor eidf098ns
If no namespace is specified, it defaults to default:
kubmonitor
Mock Mode (Testing/Debug)
For testing or debugging purposes without requiring access to a Kubernetes cluster, you can use the --mock flag to run KubMonitor with simulated data:
kubmonitor --mock
Note: When using --mock, you cannot specify a namespace. Mock mode uses generated test data and doesn't connect to a real cluster.
This will generate realistic mock data including:
- Simulated HPC Cluster with H100/A100 GPU nodes.
- Simulated resource quotas (CPU, Memory, GPU).
- Mock Kubernetes jobs with various states (running, completed, failed).
- Live simulated logs for debugging the viewer.
- Mock pods with realistic resource usage patterns
- Generated timestamps and durations
Keyboard Shortcuts
| Key | Description |
|---|---|
↑ / ↓ |
Navigate up and down |
Enter |
View logs for the selected pod |
d |
Describe the selected job/pod (kubectl describe) |
u |
Per-user view: live GPU allocation leaderboard |
q |
Quit the application |
Ctrl+C |
Force Exit |
🛠️ Technology Stack
- Rich: For beautiful terminal formatting and layout.
- Psutil: For retrieving local system metrics.
- Kubectl: Under the hood, it uses your local
kubectlconfiguration to fetch cluster data.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for kubmonitor-cli 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kubmonitor_cli-0.4.0.tar.gz | 40.1 kB | With provenance | Details for kubmonitor_cli-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kubmonitor_cli-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for kubmonitor_cli-0.4.0-py3-none-any.whl |
Total release size: 80.6 kB
Release files / kubmonitor_cli-0.4.0.tar.gz
| Download URL | kubmonitor_cli-0.4.0.tar.gz |
|---|---|
| Size | 40.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25c9b7d77661ffaa366763258235b8c3cff23876c284ce91f9f8ef4f5b837058
|
|
BLAKE2b-256 checksum How to use checksums |
3dae2f0dcac1997102d989acb42ca187c2a77ce3d70389b048c7fccf97281e3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / kubmonitor_cli-0.4.0-py3-none-any.whl
| Download URL | kubmonitor_cli-0.4.0-py3-none-any.whl |
|---|---|
| Size | 40.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64fa1e53ffa540b31b5e5fcb67ef61c37cf7d17a5c331173b9db0b5ab3de47bd
|
|
BLAKE2b-256 checksum How to use checksums |
120a4750dba0b524e36860dcba6e09520920ea8d0c4efcafa95a8d38d95f23af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logSecurity for kubmonitor-cli 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kubmonitor_cli-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.