Project

General

Profile

Actions

action #152981

closed

monitoring: Update deprecated angular grafana panels

Added by okurz 4 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
2023-12-29
Due date:
% Done:

0%

Estimated time:

Description

Motivation

See
https://grafana.com/docs/grafana/latest/developers/angular_deprecation/
I looked up all deprecated panels by looking for the key "dashLength"
which seems to only appear in older panels. For this I used the command

for i in monitoring/grafana/*.json*; do echo "### $i" && cat $i | jq '.panels[] | select(.dashLength) | .title'; done

and by the title I opened each panel over the grafana webUI and saved as
time series panel. However updating the dashboards, especially the templated ones is far from trivial.

Acceptance criteria

  • AC1: All provisioned grafana dashboard files do not use deprecated angular panels anymore
  • AC2: Monitoring panels still look and work equivalent to before

Suggestions

  • Go over every grafana provisioning file in https://gitlab.suse.de/openqa/salt-states-openqa and for every outdated angular panel in there update to new "time series" or equivalent
  • Save each file and update the provisioning files
  • For templates take care to re-apply the templating, e.g. for-loops and {{ variable }} replacements
  • Ensure after merge the deployed files cause no obvious regressions
Actions #1

Updated by okurz 4 months ago

https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/1071

Any hints how to test this? I can only think of either merging and seeing in production or manually deploying all files to OSD, applying salt to deploy and seeing the effect on grafana.

Actions #2

Updated by okurz 4 months ago

I now prepared https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/1071 to only include the commits which I consider safer to merge leaving more complicated templated dashboards for later

Actions #3

Updated by okurz 4 months ago

  • Status changed from New to In Progress

https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/1071 merged. I checked all dashboards that were included in this MR and they look good so far. Now continuing with the others.

https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/1076

Actions #4

Updated by okurz 4 months ago

Actions #5

Updated by openqa_review 4 months ago

  • Due date set to 2024-01-25

Setting due date based on mean cycle time of SUSE QE Tools

Actions #6

Updated by okurz 4 months ago

  • Due date deleted (2024-01-25)
  • Status changed from In Progress to Resolved

Worker dashboard also looks fine. All should be upgraded now.

Actions

Also available in: Atom PDF