Skip to content

Commit

Permalink
Clean up metrics section in Heron UI (apache#3153)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwangtw authored and sreev committed Apr 9, 2020
1 parent ada1b4a commit 82cf49b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions heron/tools/ui/resources/static/js/stat-trendlines.js
Expand Up @@ -207,10 +207,8 @@ function StatTrendlines(baseUrl, cluster, environ, toponame, physicalPlan, logic
} else if (instance === '*') {
d3.select('#trendline-title').text(name + ' Metrics');
} else {
d3.select('#trendline-title').text('Instance Metrics');
}
d3.select('#trendline-title').text(instance + ' Metrics');

if (instance !== '*') {
container = instance.split("_")[1];
target
.append('div')
Expand All @@ -220,7 +218,6 @@ function StatTrendlines(baseUrl, cluster, environ, toponame, physicalPlan, logic
'<a class="btn btn-primary btn-xs" target="_blank" href="/topologies/filestats/' + cluster + '/' + environ + '/' + toponame + '/' + container + '">job</a>',
'<a class="btn btn-primary btn-xs" target="_blank" href="/topologies/' + cluster + '/' + environ + '/' + toponame + '/' + name + '/' + instance + '/exceptions">exceptions</a>',
'<br>',
instance
].join(' '));
}
};
Expand Down

0 comments on commit 82cf49b

Please sign in to comment.