mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[PR #80] [MERGED] feat(api/collector): include last snapshot metrics in the log results #152
Labels
No labels
api
bug
bug
cli / tui
dependencies
documentation
documentation
documentation
duplicate
enhancement
exporter
invalid
pull-request
pynvml
question
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/nvitop#152
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:collector📝 Commits (6)
872d20cchore(api/collector): lock snapshot intervals41d2346feat(api/collector): include last snapshot metrices in the log results9646556chore(api/collector): respect daemon thread snapshot interval47e8fa8chore(api/collector): pass timestamp as method argument886d35adocs(CHANGELOG): update changelog06dbdd3chore(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
Description
Add extra
lastvalues for each metric item. And also add a newlast_timestampfor the timestamp when the snapshot was taken (which is different from thecollect()timestamp).Motivation and Context
Resolves #77
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.