-
Notifications
You must be signed in to change notification settings - Fork 356
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
Container dashboard utilization metrics - fix hourly metrics #5232
Container dashboard utilization metrics - fix hourly metrics #5232
Conversation
…e data when empty allows a proper fallback to `empty_metrics_data` https://bugzilla.redhat.com/show_bug.cgi?id=1667986
Testing: (In
Or, if you have data, try removing (If you don't have data, #519 (comment) might help.) |
…realtime `vm.cpuUsageSparklineConfig` was replaced by `chartsMixin.cpuUsageSparklineConfig` (and same for memory), which the existing code is already using to create the `metricsDataStruct` object So just changing the tooltip in the existing structure, when needed. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1667986
|
@miq-bot add_label wip still TODO daily:
EDIT: fixed 👇 |
The pfLineChart component does deal with the possibility that `vm.chartData.dataAvailable` is false, and shows an empty chart instead. However, before getting there, it fails, because there is no `vm.config` object when no data is available. All of updateAll only deals with the situation where there is data available, so just bailing early when it isn't.
@miq-bot remove_label wip When no data is available, we get |
Container dashboard utilization metrics - fix hourly metrics (cherry picked from commit 2e05444) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1674585
Hammer backport details:
|
EDIT: nope, there's #5310 for that one |
Compute > Containers > Providers > pick a provider, dashboard view
When there is daily utilization data, there is no bug.
When no daily data is available, we get console errors:
When no hourly data is available, the fallback to realtime or empty (
... || realtime_utilization || empty_utilization_trend_data
) would never get called, becausehourly_utilization
always returned data.=> made sure hourly returns no data when empty, allowing the realtime fallback
=> fix the JS error by setting the
tooltipFn
on the rightmetricsDataStruct
object.Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1667986