Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix power calculation #288

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix power calculation #288

wants to merge 1 commit into from

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