nictownsend commented on code in PR #28564:
URL: https://github.com/apache/flink/pull/28564#discussion_r4772324466


##########
flink-runtime-web/web-dashboard/src/app/pages/task-manager/metrics/task-manager-metrics.component.html:
##########
@@ -164,6 +164,61 @@
     </tbody>
   </nz-table>
 </nz-card>
+<nz-card
+  *ngIf="taskManagerDetail"
+  nzTitle="Process Usage"
+  nzSize="small"
+  class="flink-memory-model"
+>
+  <nz-table
+    nzBordered
+    [nzTemplateMode]="true"
+    [nzFrontPagination]="false"
+    [nzShowPagination]="false"
+    [nzSize]="'small'"
+    class="no-border"
+    [nzWidthConfig]="['220px', null]"
+  >
+    <thead>
+      <tr>
+        <th>
+          Type
+          <i
+            class="header-icon"
+            nz-icon
+            nz-tooltip
+            nzTooltipTitle="CPU usage is the TaskManager JVM's share of the 
CPUs available to it, i.e. the container's CPU limit if there is one. Memory 
(RSS) and Total I/O need metrics.system-resource: true and oshi-core on the 
classpath; otherwise they show as -. Total I/O counts the bytes since the 
TaskManager started and is always 0 on macOS 11 and later."

Review Comment:
   https://ng.ant.design/components/tooltip/en - we can give a template ref to 
the title so we can have line breaks.
   
   For e.g:
   
   ```
    <i
               class="header-icon"
               nz-icon
               nz-tooltip
               [nzTooltipTitle]="processUsageTip"
               [nzTooltipOverlayStyle]="{ 'max-width': '420px' }"
               nzType="info-circle"
             ></i>
             <ng-template #processUsageTip>
                 <p>CPU Usage</p>
                 <p>Memory needs</p>
             </ng-template>
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to