Project

General

Profile

Actions

action #152981

closed

monitoring: Update deprecated angular grafana panels

Added by okurz 5 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

Also available in: Atom PDF