[PR #192] feat: add Kubernetes integration with monitoring POD resources #197

Open
opened 2026-05-05 03:27:39 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/192
Author: @ntheanh201
Created: 11/14/2025
Status: 🔄 Open

Base: mainHead: feat/k8s-pod


📝 Commits (2)

  • 1b1f34f feat: add Kubernetes integration to nvitop-exporter
  • f00a469 Adds Kubernetes Grafana dashboard variables

📊 Changes

10 files changed (+1393 additions, -19 deletions)

View changed files

📝 README.md (+140 -0)
📝 nvitop-exporter/grafana/dashboard.json (+64 -0)
📝 nvitop-exporter/nvitop_exporter/cli.py (+5 -1)
📝 nvitop-exporter/nvitop_exporter/exporter.py (+297 -10)
📝 nvitop/api/__init__.py (+17 -0)
nvitop/api/kubernetes.py (+717 -0)
📝 nvitop/api/process.py (+140 -4)
📝 nvitop/tui/screens/main/panels/process.py (+9 -2)
📝 pyproject.toml (+3 -2)
📝 requirements.txt (+1 -0)

📄 Description

Issue Type

  • Improvement/feature implementation

Runtime Environment

  • Kubernetes cluster
  • Operating system and version: [e.g. Ubuntu 20.04 LTS / Windows 10 Build 19043.1110]
  • Terminal emulator and version: [e.g. GNOME Terminal 3.36.2 / Windows Terminal 1.8.1521.0]
  • Python version: [e.g. 3.8.2 / 3.9.6]
  • NVML version (driver version): [e.g. 460.84]
  • nvitop version or commit: [e.g. 0.10.0 / 0.10.1.dev7+ga083321 / main@75ae3c]
  • python-ml-py version: [e.g. 11.450.51]
  • Locale: [e.g. C / C.UTF-8 / en_US.UTF-8]

Description

  • This PR introduces Kubernetes integration to nvitop.
  • Allow monitor Kubernetes resources by POD

Motivation and Context

Testing

Images / Videos

Screenshot 2025-11-14 at 16 38 35

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/XuehaiPan/nvitop/pull/192 **Author:** [@ntheanh201](https://github.com/ntheanh201) **Created:** 11/14/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/k8s-pod` --- ### 📝 Commits (2) - [`1b1f34f`](https://github.com/XuehaiPan/nvitop/commit/1b1f34fbc020217f22801409c22b322664dfb3e1) feat: add Kubernetes integration to nvitop-exporter - [`f00a469`](https://github.com/XuehaiPan/nvitop/commit/f00a46974122b18c86ee2ffa598b0602258c97f8) Adds Kubernetes Grafana dashboard variables ### 📊 Changes **10 files changed** (+1393 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+140 -0) 📝 `nvitop-exporter/grafana/dashboard.json` (+64 -0) 📝 `nvitop-exporter/nvitop_exporter/cli.py` (+5 -1) 📝 `nvitop-exporter/nvitop_exporter/exporter.py` (+297 -10) 📝 `nvitop/api/__init__.py` (+17 -0) ➕ `nvitop/api/kubernetes.py` (+717 -0) 📝 `nvitop/api/process.py` (+140 -4) 📝 `nvitop/tui/screens/main/panels/process.py` (+9 -2) 📝 `pyproject.toml` (+3 -2) 📝 `requirements.txt` (+1 -0) </details> ### 📄 Description <!-- Provide a descriptive summary of the changes in the title above --> #### Issue Type <!-- Pick relevant types and delete the rest --> - Improvement/feature implementation #### Runtime Environment <!-- Details of your runtime environment --> - Kubernetes cluster - Operating system and version: [e.g. Ubuntu 20.04 LTS / Windows 10 Build 19043.1110] - Terminal emulator and version: [e.g. GNOME Terminal 3.36.2 / Windows Terminal 1.8.1521.0] - Python version: [e.g. `3.8.2` / `3.9.6`] - NVML version (driver version): [e.g. `460.84`] - `nvitop` version or commit: [e.g. `0.10.0` / `0.10.1.dev7+ga083321` / `main@75ae3c`] - `python-ml-py` version: [e.g. `11.450.51`] - Locale: [e.g. `C` / `C.UTF-8` / `en_US.UTF-8`] #### Description - This PR introduces Kubernetes integration to nvitop. - Allow monitor Kubernetes resources by POD <!-- Describe the changes in detail --> #### Motivation and Context - Closes: #169 <!-- Why are these changes required? --> <!-- What problems do these changes solve? --> <!-- Link to relevant issues --> #### Testing <!-- What tests have been run? --> <!-- How does the changes affect other areas of the codebase? --> #### Images / Videos <!-- Only if relevant --> <img width="1775" height="583" alt="Screenshot 2025-11-14 at 16 38 35" src="https://github.com/user-attachments/assets/3522ad84-3076-4b5c-9079-19c7d33fc5da" /> <!-- Link or embed images and videos of screenshots, sketches etc. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror added the
pull-request
label 2026-05-05 03:27:39 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/nvitop#197
No description provided.