Bug #42980
mgr/dashboard: 'dashboard grafana dashboards update' fails with existing dashboards
% Done:
0%
Source:
Q/A
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
When creating a dashboard in Grafana from API (https://grafana.com/docs/http_api/dashboard/#create-update-dashboard), every dashboard JSON 'id' field should be 'null', and the Grafana returns the actual 'id' assigned to that dashboard (self incrementing key value). For updating them, the 'id' needs to match an existing dashboard. If some 'id' is specified and does not matches an existing one, a not found will be triggered. All our dashboard include non-null 'id' fields, so the easy fix would be to remove then (dashboard JSONs also have a 'uid').
History
#1 Updated by Ernesto Puerta over 2 years ago
- Project changed from mgr to Dashboard
- Category changed from 148 to Monitoring