]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: pass Grafana datasource in URL 41598/head
authorErnesto Puerta <epuertat@redhat.com>
Mon, 31 May 2021 11:45:40 +0000 (13:45 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Mon, 31 May 2021 14:19:44 +0000 (16:19 +0200)
commit957c9c304bca8ef8416041f96b0e2d5bb0f0a0dc
tree3c5bda7fc5ad7b6b9e51be326d944981874c3334
parent54d02f098a77738d9e1fd905e7f4cb8aed721d22
mgr/dashboard: pass Grafana datasource in URL

PR https://github.com/ceph/ceph/pull/24314 added support for
specifying the Grafana datasource via $datasource template variable, but
this hadn't been used from the Dashboard side so far.

As per https://grafana.com/docs/grafana/latest/variables/#templates, by
adding `var-datasource=Dashboard1`, Dashboard can specify the
datasource.

Fixes: https://tracker.ceph.com/issues/51026
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/grafana/grafana.component.ts