-
Notifications
You must be signed in to change notification settings - Fork 761
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
Unexpected Relationship between Range (rated) and Range (est.) in Internal Drives Dashboard, Drive panel #3763
Comments
Hi tjhart,
|
@JakobLichterfeld Note the 3 screen shots (all of the exact same graph), the units I calculated, and the displayed difference between the values:
|
As wrote before, the cursor does not snag to the correct value, this is a grafana "issue" when your zoom level is too small for quick changes in values. |
I don't understand "the cursor does not snag to the correct value" or "zoom level is too small for quick changes" What do you mean? I recognize that in the graph above, Grafana is dealing with multiple records per point on the x axis. However, that does not explain the issue I'm seeing. The displayed values line up with the underlying data. I can't find 'adjacent' data that would explain the above. Screen shot 3 explains the problem very well when you look at the data. The time is 2024-03-10 15:52:25 UTC. Here are records near that timestamp that have range values:
|
@JakobLichterfeld I've provided data for a second drive which still demonstrates the same problem. This drive is only 10 minutes long, but the same issues are demonstrated. |
I believe what is happening is that these values are not plotted against the Y axis with the values we had displayed. And thus they do not "fluctuate" how you would expect them too on a normal graph (e.g. proper spacing). Notice that on the left, there is no value for the range values in the axis - it is speed and power. I think Grafana is just doing its best to plot the range values. @DrMichael you see anything different to this? I can make them show, but look how confusing the right hand side is: If I have my understanding correctly then, I am seeing the same behavior @tjhart - see screenshot and where my tooltip is. But I believe if we add them, it is going to be too confusing. |
@JakobLichterfeld and @cwanja I don't have experience with Grafana, so I'm not sure if this is the correct solution, but it resolves my issue. I've fiddled with the pane definition for 'Internal Drive -> Drives'. Override 12 is defined as:
Which is different than Override 9:
Removing |
@cwanja I understand you're trying to represent a LOT of data on this graph, and space is a premium. Dunno what the right solution is for everyone. I do expect lines of the same unit of measure should sync, whether the labels are displayed or not. I'm ok with not seeing a 'miles' label. The popup for values makes it clear enough for me. |
@tjhart definitely take a look at it later, my gut tells me it was oversight. I know these graphs have been a bit pain even when Adrian was around. Would want @DrMichael to validate further as well. |
@cwanja has this issue been validated? I can create a MR with the field Min set to 0, but I'd prefer to know that it'd be accepted relatively soon. |
No, I have not taken the time to look into this further @tjhart. But will in the coming days. |
@DrMichael @Dulanic - can you review this thread and the proposed change below. To resolve the irregular lines spacing in the Drive Details panel, @tjhart proposed one of the following fixes (note the orange and red lines):
In my testing, option two looks like the better path.
@jheredianet would appreciate any insights you have as well. |
If no or no negative feedback is given in 48 hours, I will propose a PR removing the property on override 9. |
Hi @cwanja @tjhart, before any change, please could you test with this PR? (already merged a few days ago) #3836 I've already changed the axis, because it's true that the info is a little confusing since it shows many values with different metrics of different units, so It's hard for Grafana to mix them all. So, what I did was to put the "power" to the right and the rest on the left (as they always were), also updated the color patterns, and the most important change is the "center cero" axis, with it the Y axis could visualize better the regen on a drive, on the other hand the ranges (estimate, rated or ideal depending on the user preference) show as expected. Only Speed, Range rated and estimated selected: Could you check if it is ok or is it necessary to Remove Standard options > Min 0? |
@jheredianet and @cwanja I've reviewed the PR as it relates to this issue. The images above, and reviewing my own data with the changes, do NOT resolve the issue I see. The rated range has a higher value, but the estimated range is higher in the displayed graph. I displayed the data range on the right axis, (only for the purposes of testing and inspection), and to my surprise the scale for the estimated range dipped well into negative numbers, with zero at the middle of the graph. As best as I understand that statistic, a range, whether it's real, estimated, or rated, would never be below zero. I don't think this is related to any of the changes in that PR, but it's an interesting limit to consider. |
@tjhart unless I am missing it, your post does not include an image.
Do you have a screenshot? Are you adding the ranges as axis markers? In all of the images here, only my comment has them listed on the axis'. |
@cwanja Yeah, that's odd. I was trying to inline the last screen shot from @jheredianet 's post. Looked fine in I only added the axis locally so I could see the entire range being represented, as a means of inspection and testing. I was not trying to create a PR or suggest that those axis should be a part of the displayed graph. |
Perfect, thanks for that response and clarity @tjhart. Based upon that, @jheredianet I would not say that PR unintendedly does not resolves this issue. I would still like to see feedback from @Dulanic or @DrMichael before committing, but I am still thinking that removing |
I disagree with moving some of the metrics out to its own graph, the Drive Details is already busy enough. I do think if we can smooth out the lines where metrics collide in an "unnatural" way, I think that is the best method. I do agree that we cannot add additional axis nor do I think @tjhart is after that (correct me if I am wrong however). If we can resolve the incorrect plotting of the lines where the lines are on top of each other (see image below) when the values are different would solve the issue in my opinion. These range values are not the same. However, with Override 9 I was unsuccessful at modifying my image to pull your merged PR #3836 and test in my installation. But my gut tells me we would still need further modifications to smooth the line and achieve what @tjhart is reporting. Awaiting a response here (or on the PR) on how I could test that specific PR to validate my theory that further changes are still required. |
Hmmm. just my gut feeling: I would prefer option one. Option 2 suggests. that the est range is less than half of the rated range... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
With all the attention that #3792 is rightfully getting, I don’t mind that this has become stale. And I don’t want this issue forgotten either. Bump. 😅 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Is there an existing issue for this?
What happened?
When viewing the 'Drive' panel of the 'Internal Drives' dashboard, the Range (rated) and Range (est.) graph lines relationship to each other is unexpected.
Expected Behavior
Given that Range (rated) and Range (est.) are measured in the same unit of measurement, I expect values that are close to each other to be graphed close to each other, and values that are relatively far apart to be visually far apart.
Steps To Reproduce
drives.csv
anddrive-2.csv
positions.csv
andpositions-2.csv
drives
dashboarddrive-1
) or time range 2024-03-21 16:30:02 UTC to 2024-03-21 16:40:52 (drive-2
)Drive
panel (see screen shots)Relevant log output
Screenshots
Irrelevant graph lines were set to 'transparent' color to aid in demonstration.
Drive 1
Baseline units apart: 16
Units apart: 1
Units apart: -13
Units apart: -7
Drive 2
Baseline Units apart: -23
Units apart: 0
Units apart: -44
Units apart: -41
Additional data
internal-drive-drive.csv
positions.csv
drives.csv
drive-2.csv
positions-2.csv
Type of installation
Docker
Version
v1.28.4
The text was updated successfully, but these errors were encountered: