-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Line visualization is messed up with Kibana 7.2.1 #42335
Comments
Pinging @elastic/kibana-app |
The same problem occurs on the just released 7.3.0 version too. |
Hi Ron, that indeed looks like a bug. Kibana scales down values if you specify a manual interval that's smaller then what we actually use, and it seems this got triggered there without a reason. To reproduce that properly, could you please give us the configuration of your chart. Ideally just export the Saved Object of that chart from Management > Saved Object and upload this here. If there are sensitive field names or index names in that, feel free to blank them (but please mark what you changed manually in the saved object). Also one more information: Could you give us a screenshot from the x-axis aggregation for that chart in the editor, i.e. what field and interval was selected for that x-axis (this should also be in the saved object, I just want to crosscheck if it's aligned with what you see in the editor). Thanks a lot, EDIT Just for posterity, my current suspicion is that removing |
Hi @timroes, here is a screenshot showing the x-axis parameters and the exported saved object of this visualization as zip archive. Both are from a Kibana 7.3.0 system. Best regards, |
Okay this is interesting, because 7.2 actually shows the correct (but confusing, I'll come to that later) behavior, and 7.1 seems to be broken, though I never have seen any other reports on that. Let me shortly elaborate what's happening here. If you specify a manual interval (i.e. not So the 7.2 behavior is the one we would currently expect to see. I cannot tell you (and cannot recreate) why 7.1 did behave differently for you. Did you maybe not have "minute" selected that time, but "auto" Or were you looking at a smaller overall time range (in which case we might not have needed to apply scaling). Nevertheless this behavior seems to confuse a lot of users, and we already talked about that a couple of time, and I think I will open a separate discussion issue for that tomorrow, to discuss if it makes more sense to just remove that scaling behavior. Does this provide enough context for explaining that behavior for you? |
Hi @timroes, thanx for this explanation. But for me the Kibana >= 7.2 behavior seems faulty because you modify the values of the y-axis based on the time interval on x-axis. This makes no sense to me. In my example I display the java Heap memory value over time. So in the current Kibana versions this heap memory value is modified and that's simply wrong. The heap memory was 1167 MB and not 38.9 MB at the shown point of time on the x-axis. I used the same elasticsearch data and imported the same "Saved objects" into 7.1.1 and 7.2.1 / 7.3. So the chart parameters were equal also regarding the interval setting (Minute). Here is a screenshot of the 7.1.1 x-axis parameters of this chart. The heap memory values are shown correctly as expected: |
I agree that the behavior might be confusing, why I mentioned to discuss whether we remove this. The behavior in 7.2 is nevertheless the current expected behavior and the 7.1 was broken for some reason. Since the behavior is in recent Kibana versions working as expected I'll close this issue (and will later refer to the discussion issue about removing the time scaling in general). |
Hi @timroes, I just noticed also a small difference regarding the interval parameter naming in 7.1.1 and 7.3.0. |
Reopening this, since @flash1293 pointed out to me, that indeed this is a top hits metric, and despite my explanation for how we scale value, that actually should only happen for visualizations where it makes sense (currently Count and Sum), and not for any other metric. So indeed this is a bug, that the scale is applied to the "top hits" metric here. (And will still open an issue to discuss that behavior for Sum/Count) |
Pinging @elastic/kibana-app-arch |
The root cause for this issue is, that the I checked the code and it seems this functionality is the only one that requires @lukeelmers @ppisljar we need to sync about how we could fix this issue. Currently as long as we upscale your buckets to larger time buckets, we will ALWAYS scale down all metrics no matter which kind, which is wrong behavior. |
@Ron-70 Thanks for opening this issue. We have a fix on the way for one of the next patch versions. You should be able to get this temporarily fixed by specifying |
Hi, thanx for the fast reaction. I will wait for the next patch version. |
I know also created #42611 to discuss the general removal of that feature. |
Kibana version: 7.2.1
Elasticsearch version: 7.2.1
Describe the bug:
The Line visualization in Kibana 7.2.1 is messed up.
I compared the Line visualization between Kibana 7.1.1 and 7.2.1. Based on the same elasticsearch data and the same "Saved Objects" used in 7.1.1. and in 7.2.1, the 7.2.1 Line visualization is totaly wrong according to the shown chart / values. See screenshots. Additionally if you zoom more into the chart in Kibana 7.2.1 then the values change and come more closer to the correct values.
It seems in 7.2.1 the real correct values (e.g. 1167 in the screenshot example) are divided by the current date interval (in screenshot example 30 min) and then shown as chart value (38.9). Thats very strange and wrong.
So at the moment Kibana 7.2.1 is unusable regarding Line visualizations.
Expected behavior: Correct Line visualization as in Kibana 7.1.1
Screenshots (if relevant):
The text was updated successfully, but these errors were encountered: