From: Jason Dillaman Date: Fri, 11 Jan 2019 21:30:52 +0000 (-0500) Subject: mgr/dashboard: incorporate RBD overall performance grafana dashboard X-Git-Tag: v14.1.0~405^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6e261774ce238bfa82a351043fbb2044cecc85c2;p=ceph-ci.git mgr/dashboard: incorporate RBD overall performance grafana dashboard Fixes: http://tracker.ceph.com/issues/37867 Signed-off-by: Jason Dillaman --- 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 f629bd7e78d..0827a61dc83 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 78e78ff6b9f..bf99a771234 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 a021d350c96..9774dc4c8e5 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