Skip to content

Commit

Permalink
[FLINK-14176][web] Add log url for taskmanager of vertex (apache#9798)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-024 authored and wuchong committed Oct 17, 2019
1 parent 9e7f229 commit 60b5698
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ export interface VertexTaskManagerDetailInterface {
RUNNING: number;
SCHEDULED: number;
};
'taskmanager-id': string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
[nzSize]="'small'"
[nzLoading]="isLoading"
[nzData]="listOfTaskManager"
[nzScroll]="{x:'1450px',y:'calc( 100% - 35px )'}"
[nzScroll]="{x:'1500px',y:'calc( 100% - 35px )'}"
[nzFrontPagination]="false"
[nzShowPagination]="false">
<thead (nzSortChange)="sort($event)" nzSingleSort>
<tr>
<th nzWidth="160px" nzLeft="0px" nzShowSort nzSortKey="host">Host</th>
<th nzWidth="50px" nzLeft="160px">LOG</th>
<th nzWidth="150px" nzShowSort nzSortKey="metrics.read-bytes">Bytes received</th>
<th nzWidth="150px" nzShowSort nzSortKey="metrics.read-records">Records received</th>
<th nzWidth="120px" nzShowSort nzSortKey="metrics.write-bytes">Bytes sent</th>
Expand All @@ -41,6 +42,12 @@
<tbody>
<tr *ngFor="let taskManager of listOfTaskManager; trackBy:trackTaskManagerBy;">
<td nzLeft="0px">{{ taskManager.host }}</td>
<td nzLeft="160px">
<span *ngIf="!taskManager['taskmanager-id'] || taskManager['taskmanager-id'] === '(unassigned)'; else hrefTpl">-</span>
<ng-template #hrefTpl>
<a [routerLink]="['/task-manager',taskManager['taskmanager-id'],'logs']" target="_blank">LOG</a>
</ng-template>
</td>
<td>
<span *ngIf="taskManager.metrics['read-bytes-complete'];else loadingTemplate">
{{ taskManager.metrics['read-bytes'] | humanizeBytes }}
Expand Down

0 comments on commit 60b5698

Please sign in to comment.