Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Min/max values auto calculation for multiple queries in one panel #37711

Closed
krocans opened this issue Aug 9, 2021 · 4 comments
Closed

Min/max values auto calculation for multiple queries in one panel #37711

krocans opened this issue Aug 9, 2021 · 4 comments
Labels
area/panel/stat gh-discussions A label used for bulk-migration of FRs/ERs to discussions

Comments

@krocans
Copy link

krocans commented Aug 9, 2021

Looks like min/max "auto" calculation behavior when using multiple queries in single Stat panel has changed in 8.0.6.
In version 8.0.5 min/max values were auto calculated "per query", for example following panel graphs under stat are proportional to each query vales.
image

Since version 8.0.6 (8.1 too) same panel looks following
image
It looks like since 8.0.6 common min/max values are calculated per values of all queries together and as a result graphs for series with smaller values becomes almost invisible.

Similar problem is for Bar gauge panel too.

Is this a bug or it's planned change and will remain so in future versions?

@leeoniya
Copy link
Contributor

leeoniya commented Aug 9, 2021

this was a behavior change in 8.x (vs 7.x) that was not entirely intentional. #32765 illustrates where the new behavior is worse. so we brought back the 7.x logic in #36497.

i guess the better strategy here would be to have several min/max pairs grouped by units. currently there is just a single min/max that's determined from all numeric fields without regard for units.

@krocans
Copy link
Author

krocans commented Aug 9, 2021

I see that there are different cases and in each case need for shared or common minmax is different.
So in my opinion most correct approach will be to make minmax behavior user configurable per panel.

Grouping by units also is not always good. What I see there as example is some heater/heat exchanger intake/supply temperatures being put on one panel - one series data may be about -15C other about +20C an as a result we will get 2 "horizontal lines" one at bottom one at top (or one almost 0 and one full bar in Bar gauge). So it may be useful but also only as configurable option.

@leeoniya
Copy link
Contributor

i definitely see and agree with your points. however, we have to balance how many options we expose for the 1% power users but which may overwhelm and/or confuse the remaining 99%.

i think grouping by units is something that is generally better behavior and can be done by default without introducing any additional options, so is most likely to get implemented without the need for much debate on additional options. it also automatically solves the specific example you provided, so there's that ;)

@pkolyvas pkolyvas added gh-discussions A label used for bulk-migration of FRs/ERs to discussions and removed type/feature-request labels Aug 20, 2021
@pkolyvas
Copy link
Contributor

We're in the process of moving Grafana feature requests to GitHub Discussions. This issue is being moved to Discussions or has been moved from our issues list, depending on where you're seeing this message.

We hope to use the discussion thread to continue building use cases, and additional evidence based on engagement/voting, in order to help us prioritize this feature request later on down the road.

As with all things Grafana, we value your input and participation in this project and appreciate your patience during this transitional period. Looking forward to the discussion!

@grafana grafana locked and limited conversation to collaborators Aug 20, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
area/panel/stat gh-discussions A label used for bulk-migration of FRs/ERs to discussions
Projects
None yet
Development

No branches or pull requests

3 participants