[PR #80] [MERGED] feat(api/collector): include last snapshot metrics in the log results #152

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

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/80
Author: @XuehaiPan
Created: 7/16/2023
Status: Merged
Merged: 7/17/2023
Merged by: @XuehaiPan

Base: mainHead: collector


📝 Commits (6)

  • 872d20c chore(api/collector): lock snapshot intervals
  • 41d2346 feat(api/collector): include last snapshot metrices in the log results
  • 9646556 chore(api/collector): respect daemon thread snapshot interval
  • 47e8fa8 chore(api/collector): pass timestamp as method argument
  • 886d35a docs(CHANGELOG): update changelog
  • 06dbdd3 chore(api/collector): last snapshot criteria

📊 Changes

2 files changed (+34 additions, -9 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 nvitop/api/collector.py (+32 -9)

📄 Description

Issue Type

  • Improvement/feature implementation

Description

Add extra last values for each metric item. And also add a new last_timestamp for the timestamp when the snapshot was taken (which is different from the collect() timestamp).

Motivation and Context

Resolves #77


🔄 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/80 **Author:** [@XuehaiPan](https://github.com/XuehaiPan) **Created:** 7/16/2023 **Status:** ✅ Merged **Merged:** 7/17/2023 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `collector` --- ### 📝 Commits (6) - [`872d20c`](https://github.com/XuehaiPan/nvitop/commit/872d20c65ed978310b355007b86c05ad9faa0214) chore(api/collector): lock snapshot intervals - [`41d2346`](https://github.com/XuehaiPan/nvitop/commit/41d23463b234ec59712785b218cea04991c2b214) feat(api/collector): include last snapshot metrices in the log results - [`9646556`](https://github.com/XuehaiPan/nvitop/commit/96465561784979528526a348f1bf3ce38477a54a) chore(api/collector): respect daemon thread snapshot interval - [`47e8fa8`](https://github.com/XuehaiPan/nvitop/commit/47e8fa868c841a39de679b998cd19faf0bf2b230) chore(api/collector): pass timestamp as method argument - [`886d35a`](https://github.com/XuehaiPan/nvitop/commit/886d35af0593fc816a4377802de4bd8f68bc847b) docs(CHANGELOG): update changelog - [`06dbdd3`](https://github.com/XuehaiPan/nvitop/commit/06dbdd3aa016418c3cb48db0f8035ea116c8692a) chore(api/collector): last snapshot criteria ### 📊 Changes **2 files changed** (+34 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `nvitop/api/collector.py` (+32 -9) </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 extra `last` values for each metric item. And also add a new `last_timestamp` for the timestamp when the snapshot was taken (which is different from the `collect()` timestamp). #### Motivation and Context <!-- Why are these changes required? --> <!-- What problems do these changes solve? --> <!-- Link to relevant issues --> Resolves #77 --- <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:50 -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#152
No description provided.