feat: add Kubernetes integration with monitoring POD resources#192
Open
ntheanh201 wants to merge 2 commits intoXuehaiPan:mainfrom
Open
feat: add Kubernetes integration with monitoring POD resources#192ntheanh201 wants to merge 2 commits intoXuehaiPan:mainfrom
ntheanh201 wants to merge 2 commits intoXuehaiPan:mainfrom
Conversation
XuehaiPan
reviewed
Nov 16, 2025
Owner
XuehaiPan
left a comment
There was a problem hiding this comment.
Hi @ntheanh201, thanks for the contribution. I wonder if you could add a separate package (use a new folder nvitop-kubernetes) for Kubernetes support. Then you can add a kubernetes extra here (merge the latest main):
Lines 75 to 87 in 5a4f1d5
For the CLI monitor, you can subclass the GpuProcess class in the new nvitop_kubernetes module, then reuse the nvitop.cli with the following patch:
from nvitop.tui import Device
from nvitop_kubernetes.tui import ModifiedGpuProcess
Device.GPU_PROCESS_CLASS = ModifiedGpuProcessFor POD information in the CLI, you can prepend the information to the process command-line instead of adding a new column. Adding a new column could be too complex because there will be too many places to change (e.g., process sorting support, horizontal scrolling support (← → arrow key)).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue Type
Runtime Environment
3.8.2/3.9.6]460.84]nvitopversion or commit: [e.g.0.10.0/0.10.1.dev7+ga083321/main@75ae3c]python-ml-pyversion: [e.g.11.450.51]C/C.UTF-8/en_US.UTF-8]Description
Motivation and Context
Testing
Images / Videos