Skip to content

Fix power calculation#288

Closed
Apsu wants to merge 1 commit into
NVIDIA:mainfrom
Apsu:main
Closed

Fix power calculation#288
Apsu wants to merge 1 commit into
NVIDIA:mainfrom
Apsu:main

Conversation

@Apsu
Copy link
Copy Markdown

@Apsu Apsu commented Mar 18, 2024

Using the calculation of sum for the power gauge results in summing the gauge over time, rather than reflecting the current amount as a gauge should. Swap it for lastNotNull.

@nvvfedorov
Copy link
Copy Markdown
Collaborator

@Apsu, Thank you for the PR. Can you provide examples before/after the change and justify the change?

@frittentheke
Copy link
Copy Markdown

@Apsu the panel already used instant (https://grafana.com/docs/grafana/latest/datasources/prometheus/query-editor/#type) causing only the most recent value to be used.

I believe if you saw issue that is / was due to e.g. multiple devices (MIG?) being summed together?
See my issue #353 and PR #355

@nccurry
Copy link
Copy Markdown
Collaborator

nccurry commented Mar 30, 2026

Closing this PR as stale.
@Apsu We can re-open this if you feel this is still needed and the suggested change is still correct in the latest version of DCGM-Exporter.

Thanks!

@nccurry nccurry closed this Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants