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

'total' literal not correct for Gauge Calculation #540

Open
ssmcgrat opened this issue Nov 4, 2022 · 1 comment
Open

'total' literal not correct for Gauge Calculation #540

ssmcgrat opened this issue Nov 4, 2022 · 1 comment

Comments

@ssmcgrat
Copy link

ssmcgrat commented Nov 4, 2022

GAUGE_CALC_TOTAL = 'total'

Howdy, I believe GAUGE_CALC_TOTAL = 'total' needs to be changed to GAUGE_CALC_TOTAL = 'sum'. The literal 'total' fails to define the Calculation value for a bar gauge, 'sum' literal has worked for me (using grafanalib 0.7.0)

@davaffy
Copy link
Contributor

davaffy commented Aug 1, 2023

I can confirm this:

image

This can also be seen here where total is set to sum.

https://github.com/grafana/grafana/blob/71b841fa9bfbc02f40f23a98d0490577603aba02/packages/grafana-data/src/transformations/fieldReducer.ts#L172

I've used this case to create my first pull request (because it was an easy one)

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

No branches or pull requests

2 participants