# All files / src/app/ceph/cluster/osd/osd-details osd-details.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    536x

     <tabset *ngIf="selection.hasSingleSelection">
      <tab heading="Attributes (OSD map)"
           i18n-heading>
        <cd-table-key-value *ngIf="osd.loaded"
                            [data]="osd.details.osd_map">
        </cd-table-key-value>
      </tab>
      <tab heading="Metadata"
           i18n-heading>
        <cd-table-key-value *ngIf="osd.loaded && osd.details.osd_metadata; else noMetaData"
                            (fetchData)="refresh()"
                            [data]="osd.details.osd_metadata">
        </cd-table-key-value>
        <ng-template #noMetaData>
          <cd-warning-panel i18n>Metadata not available</cd-warning-panel>
        </ng-template>
      </tab>
      <tab heading="Performance counter"
           i18n-heading>
        <cd-table-performance-counter *ngIf="osd.loaded"
                                      serviceType="osd"
                                      [serviceId]="osd.id">
        </cd-table-performance-counter>
      </tab>
      <tab heading="Histogram"
           i18n-heading>
        <cd-warning-panel *ngIf="osd.loaded && osd.histogram_failed"
                          i18n>Histogram not available: {{ osd.histogram_failed }}</cd-warning-panel>

        <div class="row"
             *ngIf="osd.loaded && osd.details.histogram">
          <div class="col-md-6">
            <h4 i18n>Writes</h4>
            <cd-osd-performance-histogram [histogram]="osd.details.histogram.osd.op_w_latency_in_bytes_histogram">
            </cd-osd-performance-histogram>
          </div>
          <div class="col-md-6">
            <h4 i18n>Reads</h4>
            <cd-osd-performance-histogram [histogram]="osd.details.histogram.osd.op_r_latency_out_bytes_histogram">
            </cd-osd-performance-histogram>
          </div>
        </div>
      </tab>
      <tab i18n-heading
           *ngIf="grafanaPermission.read"
           heading="Performance Details">
        <cd-grafana [grafanaPath]="'osd-device-details?var-osd_id=' + osd['id']"
                    uid="MKj_9ipiz"
                    grafanaStyle="GrafanaStyles.two">
        </cd-grafana>
      </tab>
    </tabset>