Overview
Currently, the kdm health command provides only a one-time snapshot of Docker container and Kubernetes pod health.
A live monitoring / watch mode would significantly improve the usability of KDM for real-time debugging and observability.
Proposed Feature
Add support for a continuous monitoring mode using:
kdm health <target> --watch
or shorthand:
Example Usage
Watch all workloads
Watch only Kubernetes pods
Watch only Docker containers
kdm health containers --watch
Expected Behavior
- Continuously refresh health output at fixed intervals
- Show updated container/pod statuses in real time
- Detect:
- crashes
- restarts
- unhealthy workloads
- newly created workloads
- Exit cleanly using
Ctrl + C
Suggested Enhancements
Custom refresh interval
kdm health all --watch --interval 5
Where:
5 = refresh every 5 seconds
Terminal Improvements
- Clear and redraw the table on refresh
- Preserve colored health indicators
- Show timestamp of latest refresh
Why This Feature Matters
This would make kdm health more useful for:
- DevOps workflows
- local Kubernetes debugging
- monitoring development containers
- real-time troubleshooting
Instead of repeatedly running the command manually, users could monitor workload health continuously from a single terminal session.
Possible Implementation Ideas
- Use
setInterval() for periodic refresh
- Re-render CLI tables dynamically
- Gracefully handle Docker/Kubernetes connection failures
- Support both Docker and Kubernetes sources independently
Current Behavior
Currently:
returns only a static snapshot of workload health.
Expected Improvement
After this feature:
would behave similarly to:
watch kubectl get pods
docker stats
- live DevOps monitoring tools
while keeping the clean KDM CLI experience.
Overview
Currently, the
kdm healthcommand provides only a one-time snapshot of Docker container and Kubernetes pod health.A live monitoring / watch mode would significantly improve the usability of KDM for real-time debugging and observability.
Proposed Feature
Add support for a continuous monitoring mode using:
or shorthand:
Example Usage
Watch all workloads
Watch only Kubernetes pods
Watch only Docker containers
Expected Behavior
Ctrl + CSuggested Enhancements
Custom refresh interval
Where:
5= refresh every 5 secondsTerminal Improvements
Why This Feature Matters
This would make
kdm healthmore useful for:Instead of repeatedly running the command manually, users could monitor workload health continuously from a single terminal session.
Possible Implementation Ideas
setInterval()for periodic refreshCurrent Behavior
Currently:
returns only a static snapshot of workload health.
Expected Improvement
After this feature:
would behave similarly to:
watch kubectl get podsdocker statswhile keeping the clean KDM CLI experience.