[PR #92] [MERGED] feat(exporter): add Prometheus exporter #157

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

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/92
Author: @XuehaiPan
Created: 8/18/2023
Status: Merged
Merged: 8/26/2023
Merged by: @XuehaiPan

Base: mainHead: prometheus


📝 Commits (10+)

  • fc32f65 feat(exporter): add support for Prometheus exporter
  • 2c309cc chore(workflows): update lint workflows
  • 5f8013c chore(workflows): update build workflows
  • 3165124 chore(api/device): update process utilization delay interval
  • 08d0eee chore: update classisfiers
  • df01f6c chore(workflows): update build workflows
  • fd681c3 chore(exporter/cli): print more information
  • 336196d chore(exporter/cli): print more information
  • 0019393 docs(CHANGELOG): update CHANGELOG
  • 3283567 chore(exporter): allow NaN for int values

📊 Changes

24 files changed (+1475 additions, -37 deletions)

View changed files

📝 .github/workflows/build.yaml (+31 -11)
📝 .github/workflows/lint.yaml (+27 -0)
📝 .pre-commit-config.yaml (+4 -0)
📝 .pylintrc (+2 -1)
📝 CHANGELOG.md (+1 -0)
📝 docs/source/spelling_wordlist.txt (+2 -0)
nvitop-exporter/LICENSE (+202 -0)
nvitop-exporter/MANIFEST.in (+1 -0)
nvitop-exporter/README.md (+11 -0)
nvitop-exporter/nvitop_exporter/__init__.py (+24 -0)
nvitop-exporter/nvitop_exporter/__main__.py (+25 -0)
nvitop-exporter/nvitop_exporter/cli.py (+240 -0)
nvitop-exporter/nvitop_exporter/exporter.py (+608 -0)
nvitop-exporter/nvitop_exporter/utils.py (+38 -0)
nvitop-exporter/nvitop_exporter/version.py (+54 -0)
nvitop-exporter/pyproject.toml (+83 -0)
nvitop-exporter/requirements.txt (+2 -0)
nvitop-exporter/setup.py (+44 -0)
📝 nvitop/api/__init__.py (+51 -7)
📝 nvitop/api/device.py (+5 -5)

...and 4 more files

📄 Description

Issue Type

  • Improvement/feature implementation

Description

Add a new separate PyPI package nvitop-exporter built on top of nvitop APIs.

Motivation and Context

Resolves #72

Images / Videos

image image

🔄 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/92 **Author:** [@XuehaiPan](https://github.com/XuehaiPan) **Created:** 8/18/2023 **Status:** ✅ Merged **Merged:** 8/26/2023 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `prometheus` --- ### 📝 Commits (10+) - [`fc32f65`](https://github.com/XuehaiPan/nvitop/commit/fc32f65aa1aeccd72c3769d5beb6e01d6af2dd46) feat(exporter): add support for Prometheus exporter - [`2c309cc`](https://github.com/XuehaiPan/nvitop/commit/2c309cc5ec105eda8cefc4098babaef295a19521) chore(workflows): update lint workflows - [`5f8013c`](https://github.com/XuehaiPan/nvitop/commit/5f8013c059243e4ee37eea73e45611963400b073) chore(workflows): update build workflows - [`3165124`](https://github.com/XuehaiPan/nvitop/commit/316512462b6fd09c2e6247482bd39b6e8bd013cc) chore(api/device): update process utilization delay interval - [`08d0eee`](https://github.com/XuehaiPan/nvitop/commit/08d0eee73c1ca51fa4e7b09771d5b21d5ce954e2) chore: update classisfiers - [`df01f6c`](https://github.com/XuehaiPan/nvitop/commit/df01f6cdc8afb8287b6592357e9bebe1ac0d0c0c) chore(workflows): update build workflows - [`fd681c3`](https://github.com/XuehaiPan/nvitop/commit/fd681c3bf6e677df1f4aa9cfda60c07d49564d68) chore(exporter/cli): print more information - [`336196d`](https://github.com/XuehaiPan/nvitop/commit/336196d5c5d8ed5721b74e6783443370c0b1c002) chore(exporter/cli): print more information - [`0019393`](https://github.com/XuehaiPan/nvitop/commit/001939351a232a66dde366ee62f72c2ea306bb22) docs(CHANGELOG): update CHANGELOG - [`3283567`](https://github.com/XuehaiPan/nvitop/commit/3283567be1c99d105d58c2fbbb34e723fd5f3d0c) chore(exporter): allow `NaN` for int values ### 📊 Changes **24 files changed** (+1475 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build.yaml` (+31 -11) 📝 `.github/workflows/lint.yaml` (+27 -0) 📝 `.pre-commit-config.yaml` (+4 -0) 📝 `.pylintrc` (+2 -1) 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/source/spelling_wordlist.txt` (+2 -0) ➕ `nvitop-exporter/LICENSE` (+202 -0) ➕ `nvitop-exporter/MANIFEST.in` (+1 -0) ➕ `nvitop-exporter/README.md` (+11 -0) ➕ `nvitop-exporter/nvitop_exporter/__init__.py` (+24 -0) ➕ `nvitop-exporter/nvitop_exporter/__main__.py` (+25 -0) ➕ `nvitop-exporter/nvitop_exporter/cli.py` (+240 -0) ➕ `nvitop-exporter/nvitop_exporter/exporter.py` (+608 -0) ➕ `nvitop-exporter/nvitop_exporter/utils.py` (+38 -0) ➕ `nvitop-exporter/nvitop_exporter/version.py` (+54 -0) ➕ `nvitop-exporter/pyproject.toml` (+83 -0) ➕ `nvitop-exporter/requirements.txt` (+2 -0) ➕ `nvitop-exporter/setup.py` (+44 -0) 📝 `nvitop/api/__init__.py` (+51 -7) 📝 `nvitop/api/device.py` (+5 -5) _...and 4 more files_ </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 #### Description <!-- Describe the changes in detail --> Add a new separate PyPI package `nvitop-exporter` built on top of `nvitop` APIs. #### Motivation and Context <!-- Why are these changes required? --> <!-- What problems do these changes solve? --> <!-- Link to relevant issues --> Resolves #72 #### Images / Videos <!-- Only if relevant --> <!-- Link or embed images and videos of screenshots, sketches etc. --> <img width="572" alt="image" src="https://github.com/XuehaiPan/nvitop/assets/16078332/57515282-8563-4930-9315-1d432f3915f6"> <img width="1080" alt="image" src="https://github.com/XuehaiPan/nvitop/assets/16078332/7348da19-1ba6-42c5-ba27-8c57e931347c"> --- <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:26:55 -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#157
No description provided.