Skip to content

Comments

Fix power calculation#288

Open
Apsu wants to merge 1 commit intoNVIDIA:mainfrom
Apsu:main
Open

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

Conversation

@Apsu
Copy link

@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
Collaborator

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

@frittentheke
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants