]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: incorporate RBD overall performance grafana dashboard 25927/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 11 Jan 2019 21:30:52 +0000 (16:30 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 11 Jan 2019 21:41:48 +0000 (16:41 -0500)
Fixes: http://tracker.ceph.com/issues/37867
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-images/rbd-images.component.ts
src/pybind/mgr/dashboard/frontend/src/locale/messages.xlf

index f629bd7e78da575114f3de73e9735e2812aa9c82..0827a61dc830634b828840ec1784d2185f725bfa 100644 (file)
@@ -9,5 +9,13 @@
          i18n-heading>
       <cd-rbd-trash-list></cd-rbd-trash-list>
     </tab>
+    <tab heading="Overall Performance"
+         *ngIf="grafanaPermission.read"
+         i18n-heading>
+      <cd-grafana [grafanaPath]="'rbd-overview?'"
+                  uid="41FrpeUiz"
+                  grafanaStyle="two">
+      </cd-grafana>
+    </tab>
   </tabset>
 </div>
index 78e78ff6b9f397b8200c9206b1284a7ccded398a..bf99a7712342bedc31257afc87246f8945fddfed 100644 (file)
@@ -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() {}
 }
index a021d350c9682d6a1c3bd4b75230ac8926e75889..9774dc4c8e58fa864b82cf410bd164804819a6a8 100644 (file)
           <context context-type="sourcefile">app/ceph/block/rbd-images/rbd-images.component.html</context>
           <context context-type="linenumber">8</context>
         </context-group>
+      </trans-unit><trans-unit id="5e7f4b1ca49e8d217bd0e12c6f7d6b6a2ade2c18" datatype="html">
+        <source>Overall Performance</source>
+        <context-group purpose="location">
+          <context context-type="sourcefile">app/ceph/block/rbd-images/rbd-images.component.html</context>
+          <context context-type="linenumber">12</context>
+        </context-group>
+        <context-group purpose="location">
+          <context context-type="sourcefile">app/ceph/cluster/hosts/hosts.component.html</context>
+          <context context-type="linenumber">29</context>
+        </context-group>
+        <context-group purpose="location">
+          <context context-type="sourcefile">app/ceph/cluster/osd/osd-list/osd-list.component.html</context>
+          <context context-type="linenumber">59</context>
+        </context-group>
+        <context-group purpose="location">
+          <context context-type="sourcefile">app/ceph/pool/pool-list/pool-list.component.html</context>
+          <context context-type="linenumber">48</context>
+        </context-group>
+        <context-group purpose="location">
+          <context context-type="sourcefile">app/ceph/rgw/rgw-daemon-list/rgw-daemon-list.component.html</context>
+          <context context-type="linenumber">16</context>
+        </context-group>
       </trans-unit><trans-unit id="28f86ffd419b869711aa13f5e5ff54be6d70731c" datatype="html">
         <source>Edit</source>
         <context-group purpose="location">
           <context context-type="sourcefile">app/ceph/cluster/hosts/hosts.component.html</context>
           <context context-type="linenumber">3</context>
         </context-group>
-      </trans-unit><trans-unit id="5e7f4b1ca49e8d217bd0e12c6f7d6b6a2ade2c18" datatype="html">
-        <source>Overall Performance</source>
-        <context-group purpose="location">
-          <context context-type="sourcefile">app/ceph/cluster/hosts/hosts.component.html</context>
-          <context context-type="linenumber">29</context>
-        </context-group>
-        <context-group purpose="location">
-          <context context-type="sourcefile">app/ceph/cluster/osd/osd-list/osd-list.component.html</context>
-          <context context-type="linenumber">59</context>
-        </context-group>
-        <context-group purpose="location">
-          <context context-type="sourcefile">app/ceph/pool/pool-list/pool-list.component.html</context>
-          <context context-type="linenumber">48</context>
-        </context-group>
-        <context-group purpose="location">
-          <context context-type="sourcefile">app/ceph/rgw/rgw-daemon-list/rgw-daemon-list.component.html</context>
-          <context context-type="linenumber">16</context>
-        </context-group>
       </trans-unit><trans-unit id="d556ab48a65722b400e497f61737f553ee0f89e2" datatype="html">
         <source>Cluster Logs</source>
         <context-group purpose="location">