Skip to content

Commit

Permalink
start metric reporter in ShuffleServer#start
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjingfeng committed Apr 13, 2023
1 parent 064ffc6 commit 20a0a9a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ public void start() throws Exception {
registerHeartBeat.startHeartBeat();
jettyServer.start();
server.start();
if (metricReporter != null) {
metricReporter.start();
}

Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
Expand Down Expand Up @@ -249,7 +252,6 @@ private void registerMetrics() throws Exception {
metricReporter.addCollectorRegistry(ShuffleServerMetrics.getCollectorRegistry());
metricReporter.addCollectorRegistry(grpcMetrics.getCollectorRegistry());
metricReporter.addCollectorRegistry(JvmMetrics.getCollectorRegistry());
metricReporter.start();
}
}

Expand Down

0 comments on commit 20a0a9a

Please sign in to comment.