Project

General

Profile

Actions

Bug #42980

open

mgr/dashboard: 'dashboard grafana dashboards update' fails with existing dashboards

Added by Ernesto Puerta over 4 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Monitoring
Target version:
% 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').

Actions #1

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 148 to Monitoring
Actions

Also available in: Atom PDF