]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: pass Grafana datasource in URL 41633/head
authorErnesto Puerta <epuertat@redhat.com>
Mon, 31 May 2021 11:45:40 +0000 (13:45 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Tue, 1 Jun 2021 15:41:46 +0000 (17:41 +0200)
commit527f76005cb36003c0e37cc6fcb7e69860ea3220
tree297e0bd227e439891c1638299d42d349842dd85e
parentf908420004cc81a30edb2b252b4d92f50c526280
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>
(cherry picked from commit 957c9c304bca8ef8416041f96b0e2d5bb0f0a0dc)
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