Project

General

Profile

Actions

Feature #42653

open

mgr/dashboard: verify Grafana configuration in the front-end

Added by Patrick Seidensal over 4 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Monitoring
Target version:
-
% Done:

0%

Source:
Tags:
usability
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

The configuration GRAFANA_API_URL is used in the back-end and front-end. The back-end uses the value of the option to provide a validation service to the front-end, so that the front-end can check if the Grafana dashboard exists or is reachable before showing an IFrame with said URL. The Ceph Dashboard back-end also provides a service to update Grafana graphs through its API, using the same value of GRAFANA_API_URL.

The front-end could try to request Grafana through an AJAX call once every time it's loaded (and on configuration change) and check if it's reachable by the configured URL. Using the API provided by the back-end, the front-end can check that for the back-end as well, eventually being able to ensure Grafana has been configured properly. In case any of those two checks fail, the dashboard might be able to let the user know how the configuration failed and fail gracefully. The possibility and feasibility still needs to be determined as XHR requests may not work on cross-origin domains or need explicitly to be enabled.

Actions #1

Updated by Patrick Seidensal over 4 years ago

  • Subject changed from mgr/dashboard: tell user that the grafana hostname is used by back-end and front-end to mgr/dashboard: verify Grafana configuration in the front-end
Actions #2

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