Skip to content

KDM-cli/kdm-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

npm install -g kdm-cli

Or run directly with npx:

npx kdm-cli

Usage

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 status

Health Status

kdm health pods      # Show health status for pods
kdm health containers # Show health status for containers

Monitoring & Logs

kdm watch            # Live monitoring mode
kdm logs <name>      # Show logs for a container or pod

Help

kdm --help

Technical 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

Packages

 
 
 

Contributors