kdm-cli
v1.2.2
Published
Kubernetes and Docker Monitoring CLI
Maintainers
Readme
KDM — Kubernetes + Docker Monitoring CLI
KDM (Kubernetes Docker Monitor) is a lightweight, terminal-based monitoring CLI tool that automatically detects and monitors running Docker containers and Kubernetes pods. It provides real-time resource usage, health status, and unified views of your runners.
Features
- Auto-Detection: Automatically detects Docker containers and Kubernetes pods in your local environment.
- Unified Runner View: Combined view of Docker and Kubernetes workloads.
- Health Monitoring: Advanced health status for both containers and pods (Ready, Unhealthy, CrashLoopBackOff, etc.).
- Live Watch Mode: Real-time monitoring of resource usage.
- Logs: Easily fetch logs from both Docker and Kubernetes sources.
- Beautiful UI: Interactive terminal UI powered by Ink and Commander.
Installation
Install kdm-cli via npm:
npm install -g kdm-cliRun directly with npx:
npx kdm-cliUsage
Show Workloads
kdm show runners # Show all running pods + containers
kdm show pods # Show kubernetes pods
kdm show containers # Show docker containers
kdm show minikube # Show minikube statusHealth Status
kdm health pods # Show health status for pods
kdm health containers # Show health status for containersMonitoring & Logs
kdm watch # Live monitoring mode
kdm logs <name> # Show logs for a container or podHelp
kdm --helpTechnical Details
KDM is built with:
- TypeScript & Node.js
- Commander.js for CLI orchestration
- dockerode for Docker integration
- @kubernetes/client-node for Kubernetes integration
- Ink for terminal UI
- tsup for high-performance bundling
License
MIT
