]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html
import ceph nautilus 14.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / dashboard / health / health.component.html
index 17d94d7bd5cc8aea6f1ab5342b3d165aa4da4c93..a2f7244b619c6dc178fbd943cb7acc7e3c73af79 100644 (file)
                     *ngIf="healthData.client_perf">
         <cd-health-pie *ngIf="isClientReadWriteChartShowable()"
                        [data]="healthData"
-                       [isBytesData]="false"
-                       chartType="pie"
-                       [displayLegend]="true"
                        (prepareFn)="prepareReadWriteRatio($event[0], $event[1])">
         </cd-health-pie>
         <span *ngIf="!isClientReadWriteChartShowable()">
                  class="row info-group"
                  *ngIf="healthData.pools
                  || healthData.df
-                 || healthData.df?.stats?.total_objects != null
                  || healthData.pg_info">
 
     <div class="cd-container-flex">
                     contentClass="content-chart"
                     *ngIf="healthData.df">
         <cd-health-pie [data]="healthData"
-                       [isBytesData]="true"
-                       [displayLegend]="true"
+                       [config]="rawCapacityChartConfig"
+                       [showLabelAsTooltip]="true"
                        (prepareFn)="prepareRawUsage($event[0], $event[1])">
         </cd-health-pie>
       </cd-info-card>
                     i18n-cardTitle
                     class="cd-col-5"
                     cardClass="card-medium"
-                    contentClass="content-medium content-highlight"
-                    *ngIf="healthData.df?.stats?.total_objects != null">
-        {{ healthData.df?.stats?.total_objects }}
+                    contentClass="content-chart"
+                    *ngIf="healthData.pg_info?.object_stats?.num_objects != null">
+        <cd-health-pie [data]="healthData"
+                       [config]="objectsChartConfig"
+                       (prepareFn)="prepareObjects($event[0], $event[1])">
+        </cd-health-pie>
       </cd-info-card>
 
       <cd-info-card cardTitle="PGs per OSD"
                #pgStatusTarget="bs-popover"
                placement="bottom">
             <cd-health-pie [data]="healthData"
-                           chartType="pie"
-                           [displayLegend]="true"
+                           [config]="pgStatusChartConfig"
                            (prepareFn)="preparePgStatus($event[0], $event[1])">
             </cd-health-pie>
           </div>