Several embedded Grafana dashboards are not displayed due to changed uids
Some embedded Grafana dashboards's uids were changed recently:
This leads to some performance data page not displayed because mismatched uid.
Also in Cluster->OSDs page: if a user clicks an OSD, the corresponding dashboard in Performance Details always refers to osd.0.
#6 Updated by Kiefer Chang almost 2 years ago
As Lenz mentioned in standup, one approach to prevent this mismatch is to add e2e tests for these pages. (This requires accompanying Prometheus and Grafana instance running)
Another approach is to create a file that maintains mappings from uids in Angular template to those in Grafana dashboards. And a script is created to check those values are identical. If a developer updates Grafana dashboard with a new uid and does not update corresponding ones in Angular templates, the script should spot this.