Skip to content

Commit 81f8c05

Browse files
sachingoel0101fhueske
authored andcommitted
[FLINK-2903][web-dashboard] Format numeric values of received/sent counters.
1 parent 9bd27ca commit 81f8c05

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

flink-runtime-web/web-dashboard/app/partials/jobs/job.plan.node-list.overview.jade

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ table.table.table-body-hover.table-clickable.table-activable
3939
span(ng-if="v.duration > -1") {{ v.duration }} ms
4040

4141
td.td-long {{ v.name | humanizeText }}
42-
td {{ v.metrics['read-bytes'] }}
43-
td {{ v.metrics['read-records'] }}
44-
td {{ v.metrics['write-bytes'] }}
45-
td {{ v.metrics['write-records'] }}
42+
td {{ v.metrics['read-bytes'] | number }}
43+
td {{ v.metrics['read-records'] | number }}
44+
td {{ v.metrics['write-bytes'] | number }}
45+
td {{ v.metrics['write-records'] | number }}
4646
td
4747
.label-group
4848
bs-label(status="{{status}}" ng-repeat="(index, status) in stateList") {{v.tasks[status]}}

flink-runtime-web/web-dashboard/app/partials/jobs/job.plan.node.subtasks.jade

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ table.table.table-hover.table-clickable.table-activable.table-inner(ng-if="subta
4343
span(ng-if="subtask.duration > -1") {{ subtask.duration }} ms
4444

4545
td
46-
span(ng-if="subtask.metrics['read-bytes'] > -1") {{ subtask.metrics['read-bytes'] }}
46+
span(ng-if="subtask.metrics['read-bytes'] > -1") {{ subtask.metrics['read-bytes'] | number }}
4747
td
48-
span(ng-if="subtask.metrics['read-records'] > -1") {{ subtask.metrics['read-records'] }}
48+
span(ng-if="subtask.metrics['read-records'] > -1") {{ subtask.metrics['read-records'] | number }}
4949
td
50-
span(ng-if="subtask.metrics['write-bytes'] > -1") {{ subtask.metrics['write-bytes'] }}
50+
span(ng-if="subtask.metrics['write-bytes'] > -1") {{ subtask.metrics['write-bytes'] | number }}
5151
td
52-
span(ng-if="subtask.metrics['write-records'] > -1") {{ subtask.metrics['write-records'] }}
52+
span(ng-if="subtask.metrics['write-records'] > -1") {{ subtask.metrics['write-records'] | number }}
5353

5454
td {{ subtask.attempt + 1 }}
5555
td {{ subtask.host }}

flink-runtime-web/web-dashboard/web/partials/jobs/job.plan.node-list.overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
<td><span ng-if="v['end-time'] &gt; -1">{{ v['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss' }}</span></td>
3939
<td><span ng-if="v.duration &gt; -1">{{ v.duration }} ms</span></td>
4040
<td class="td-long">{{ v.name | humanizeText }}</td>
41-
<td>{{ v.metrics['read-bytes'] }}</td>
42-
<td>{{ v.metrics['read-records'] }}</td>
43-
<td>{{ v.metrics['write-bytes'] }}</td>
44-
<td>{{ v.metrics['write-records'] }}</td>
41+
<td>{{ v.metrics['read-bytes'] | number }}</td>
42+
<td>{{ v.metrics['read-records'] | number }}</td>
43+
<td>{{ v.metrics['write-bytes'] | number }}</td>
44+
<td>{{ v.metrics['write-records'] | number }}</td>
4545
<td>
4646
<div class="label-group">
4747
<bs-label status="{{status}}" ng-repeat="(index, status) in stateList">{{v.tasks[status]}}</bs-label>

flink-runtime-web/web-dashboard/web/partials/jobs/job.plan.node.subtasks.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
<td><span ng-if="subtask['start-time'] &gt; -1">{{ subtask['start-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss' }}</span></td>
3939
<td><span ng-if="subtask['end-time'] &gt; -1">{{ subtask['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss' }}</span></td>
4040
<td><span ng-if="subtask.duration &gt; -1">{{ subtask.duration }} ms</span></td>
41-
<td><span ng-if="subtask.metrics['read-bytes'] &gt; -1">{{ subtask.metrics['read-bytes'] }}</span></td>
42-
<td><span ng-if="subtask.metrics['read-records'] &gt; -1">{{ subtask.metrics['read-records'] }}</span></td>
43-
<td><span ng-if="subtask.metrics['write-bytes'] &gt; -1">{{ subtask.metrics['write-bytes'] }}</span></td>
44-
<td><span ng-if="subtask.metrics['write-records'] &gt; -1">{{ subtask.metrics['write-records'] }}</span></td>
41+
<td><span ng-if="subtask.metrics['read-bytes'] &gt; -1">{{ subtask.metrics['read-bytes'] | number }}</span></td>
42+
<td><span ng-if="subtask.metrics['read-records'] &gt; -1">{{ subtask.metrics['read-records'] | number }}</span></td>
43+
<td><span ng-if="subtask.metrics['write-bytes'] &gt; -1">{{ subtask.metrics['write-bytes'] | number }}</span></td>
44+
<td><span ng-if="subtask.metrics['write-records'] &gt; -1">{{ subtask.metrics['write-records'] | number }}</span></td>
4545
<td>{{ subtask.attempt + 1 }}</td>
4646
<td>{{ subtask.host }}</td>
4747
<td>

0 commit comments

Comments
 (0)