Created attachment 1850516 [details] screenshot1 Description of problem: There is a bug when adding a new table panel to a dashboard for OCP UI with only one value column. You have to manually update the "pattern" of the value label from "Value" to "Value #A" in order for it to have the unit and type apply correctly in the OCP UI. This doesn't work in Grafana. We should be able to use "Value" when there is only one value column. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1.Create a table panel with only one value column 2.Apply unit and type to the column 3.Check that "pattern" of this column is "Value" 4.After loading to OCP UI dashboards check the value column in the dashboard. Actual results: Value is empty if we use "pattern": "Value". Expected results: We should see the value in the panel with the correct type and unit. Additional info:
Shirly, are you able to attach the full dashboard JSON to this ticket? Ideally both the automatically generated JSON (with "Value") and the manually updated JSON (with "Value #A"). I confirmed that the code currently only supports the `Value #...` pattern (look for "Value #" in https://github.com/openshift/console/blob/master/frontend/public/components/monitoring/dashboards/table.tsx).
The Top Consumers dashboard currently has 7 panels that only have 1 value and they display correctly in the OCP UI, only because I added the "Value #A" instead of "Value". If you take the json and use it in Grafana it will not display correctly. https://github.com/kubevirt/monitoring/blob/ca10f6f44966fc9250df89663e58e375ad840f52/dashboards/openshift/kubevirt-top-consumers.json#L135
reproduced the issue with 4.11.0-0.ci.test-2022-04-14-064910-ci-ln-fkvn3jt-latest
Test pass with PR dashboard display see attachment.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069