[PR #159] [MERGED] feat(exporter): add Dockerfile and docker-compose template for nvitop-exporter #179

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

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/159
Author: @gianfranco-s
Created: 4/10/2025
Status: Merged
Merged: 5/26/2025
Merged by: @XuehaiPan

Base: mainHead: nvitop-exporter-dockerfile


📝 Commits (10+)

  • 254716f Add exporter Dockerfile
  • bc1f5fe Use newest syntax for docker buildx build
  • 8d7a312 Clarify use of --network=host
  • c93ee29 Improve grammar host network usage
  • f5b915b Add grafana deployment
  • a8be71b Import from NVIDIA
  • 4fc2b3e Remove old comment from exporter README
  • 5e19aef Improve instructions
  • ae6d8cc Move dashboard to nvitop-grafana/
  • 5ba34d6 Add instructions to import dashboard rather than provision it

📊 Changes

11 files changed (+124 additions, -15 deletions)

View changed files

📝 CHANGELOG.md (+1 -1)
📝 Dockerfile (+5 -10)
📝 README.md (+9 -3)
nvitop-exporter/Dockerfile (+21 -0)
📝 nvitop-exporter/README.md (+8 -1)
nvitop-exporter/grafana/Dockerfile (+10 -0)
📝 nvitop-exporter/grafana/dashboard.json (+0 -0)
nvitop-exporter/grafana/dashboard.yml (+9 -0)
nvitop-exporter/grafana/datasource.yml (+10 -0)
nvitop-exporter/grafana/docker-compose.yml (+43 -0)
nvitop-exporter/grafana/prometheus.yml (+8 -0)

📄 Description

Issue Type

  • Improvement/feature implementation

Runtime Environment

Not really necessary when using Docker.

  • Operating system and version: Pop!_OS 22.04 LTS
  • Terminal emulator and version: GNOME Terminal 3.44.0
  • Python version: 3.11.7
  • NVML version (driver version): 560.35.03
  • nvitop version or commit: main@254716f1aeaa656401e3978112ad64be6be007f4
  • python-ml-py version: -
  • Locale: en_US.UTF-8

Description

  • Added Dockerfile to build image for nvitop-exporter
  • Added instructions to start exporter
  • Updated nvitop Dockerfile due to warning about ENV label

Motivation and Context

Changes required to start the exporter in a docker container, without interactive installs.

Testing

  • Metrics are exposed correctly in http://localhost:5050. It can be consumed normally by Grafana/PRometheus

No other areas are affected.


🔄 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/159 **Author:** [@gianfranco-s](https://github.com/gianfranco-s) **Created:** 4/10/2025 **Status:** ✅ Merged **Merged:** 5/26/2025 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `nvitop-exporter-dockerfile` --- ### 📝 Commits (10+) - [`254716f`](https://github.com/XuehaiPan/nvitop/commit/254716f1aeaa656401e3978112ad64be6be007f4) Add exporter Dockerfile - [`bc1f5fe`](https://github.com/XuehaiPan/nvitop/commit/bc1f5fe1a479a1f5253004da1018ab73c99f741e) Use newest syntax for docker buildx build - [`8d7a312`](https://github.com/XuehaiPan/nvitop/commit/8d7a312016e4b88c3f2bdc11ad0cb2a93d6bdd9d) Clarify use of --network=host - [`c93ee29`](https://github.com/XuehaiPan/nvitop/commit/c93ee297c81bd7b83d4fdc1629be50da1ed18964) Improve grammar host network usage - [`f5b915b`](https://github.com/XuehaiPan/nvitop/commit/f5b915b30947f27d6cc5fd2204b679e2eea292e1) Add grafana deployment - [`a8be71b`](https://github.com/XuehaiPan/nvitop/commit/a8be71be01f66532c350494e1d9b15f447b11f6e) Import from NVIDIA - [`4fc2b3e`](https://github.com/XuehaiPan/nvitop/commit/4fc2b3e4f44ed0b08c6e04640cadb74ef1ef33ac) Remove old comment from exporter README - [`5e19aef`](https://github.com/XuehaiPan/nvitop/commit/5e19aef695607269bdf9c2885f2537c061580541) Improve instructions - [`ae6d8cc`](https://github.com/XuehaiPan/nvitop/commit/ae6d8ccd003d0d05c2a02a35b2b30b3d2eb9d2fa) Move dashboard to nvitop-grafana/ - [`5ba34d6`](https://github.com/XuehaiPan/nvitop/commit/5ba34d6dfc957150b7f33f2eb4faba14f6fec86b) Add instructions to import dashboard rather than provision it ### 📊 Changes **11 files changed** (+124 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -1) 📝 `Dockerfile` (+5 -10) 📝 `README.md` (+9 -3) ➕ `nvitop-exporter/Dockerfile` (+21 -0) 📝 `nvitop-exporter/README.md` (+8 -1) ➕ `nvitop-exporter/grafana/Dockerfile` (+10 -0) 📝 `nvitop-exporter/grafana/dashboard.json` (+0 -0) ➕ `nvitop-exporter/grafana/dashboard.yml` (+9 -0) ➕ `nvitop-exporter/grafana/datasource.yml` (+10 -0) ➕ `nvitop-exporter/grafana/docker-compose.yml` (+43 -0) ➕ `nvitop-exporter/grafana/prometheus.yml` (+8 -0) </details> ### 📄 Description <!-- Provide a descriptive summary of the changes in the title above --> #### Issue Type - Improvement/feature implementation #### Runtime Environment _Not really necessary when using Docker._ - Operating system and version: Pop!_OS 22.04 LTS - Terminal emulator and version: GNOME Terminal 3.44.0 - Python version: 3.11.7 - NVML version (driver version): 560.35.03 - `nvitop` version or commit: main@254716f1aeaa656401e3978112ad64be6be007f4 - `python-ml-py` version: - - Locale: en_US.UTF-8 #### Description * Added Dockerfile to build image for nvitop-exporter * Added instructions to start exporter * Updated nvitop Dockerfile due to warning about ENV label #### Motivation and Context Changes required to start the exporter in a docker container, without interactive installs. #### Testing * Metrics are exposed correctly in http://localhost:5050. It can be consumed normally by Grafana/PRometheus No other areas are affected. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:27:18 -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#179
No description provided.