From 6e261774ce238bfa82a351043fbb2044cecc85c2 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Fri, 11 Jan 2019 16:30:52 -0500 Subject: [PATCH] mgr/dashboard: incorporate RBD overall performance grafana dashboard Fixes: http://tracker.ceph.com/issues/37867 Signed-off-by: Jason Dillaman --- .../rbd-images/rbd-images.component.html | 8 ++++ .../block/rbd-images/rbd-images.component.ts | 9 ++++- .../frontend/src/locale/messages.xlf | 40 ++++++++++--------- 3 files changed, 38 insertions(+), 19 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.html index f629bd7e78da5..0827a61dc8306 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.html @@ -9,5 +9,13 @@ i18n-heading> + + + + diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.ts index 78e78ff6b9f39..bf99a7712342b 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.ts @@ -1,12 +1,19 @@ import { Component, OnInit } from '@angular/core'; +import { Permission } from '../../../shared/models/permissions'; +import { AuthStorageService } from '../../../shared/services/auth-storage.service'; + @Component({ selector: 'cd-rbd-images', templateUrl: './rbd-images.component.html', styleUrls: ['./rbd-images.component.scss'] }) export class RbdImagesComponent implements OnInit { - constructor() {} + grafanaPermission: Permission; + + constructor(private authStorageService: AuthStorageService) { + this.grafanaPermission = this.authStorageService.getPermissions().grafana; + } ngOnInit() {} } diff --git a/src/pybind/mgr/dashboard/frontend/src/locale/messages.xlf b/src/pybind/mgr/dashboard/frontend/src/locale/messages.xlf index a021d350c9682..9774dc4c8e58f 100644 --- a/src/pybind/mgr/dashboard/frontend/src/locale/messages.xlf +++ b/src/pybind/mgr/dashboard/frontend/src/locale/messages.xlf @@ -645,6 +645,28 @@ app/ceph/block/rbd-images/rbd-images.component.html 8 + + Overall Performance + + app/ceph/block/rbd-images/rbd-images.component.html + 12 + + + app/ceph/cluster/hosts/hosts.component.html + 29 + + + app/ceph/cluster/osd/osd-list/osd-list.component.html + 59 + + + app/ceph/pool/pool-list/pool-list.component.html + 48 + + + app/ceph/rgw/rgw-daemon-list/rgw-daemon-list.component.html + 16 + Edit @@ -749,24 +771,6 @@ app/ceph/cluster/hosts/hosts.component.html 3 - - Overall Performance - - app/ceph/cluster/hosts/hosts.component.html - 29 - - - app/ceph/cluster/osd/osd-list/osd-list.component.html - 59 - - - app/ceph/pool/pool-list/pool-list.component.html - 48 - - - app/ceph/rgw/rgw-daemon-list/rgw-daemon-list.component.html - 16 - Cluster Logs -- 2.47.3