Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ void testExporterThreadpoolName() {
PrometheusMetricsReporter reporter = new PrometheusMetricsReporter(metricsConfig.toUrl(), applicationModel);
reporter.init();
exportHttpServer(reporter, port);
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
if (metricsConfig.getEnableThreadpool()) {
metricsCollector.registryDefaultSample();
}
Expand Down Expand Up @@ -135,8 +130,8 @@ private void exportHttpServer(PrometheusMetricsReporter reporter, int port) {
os.write(response.getBytes());
}
});
Thread httpServerThread = new Thread(prometheusExporterHttpServer::start);
httpServerThread.start();
// start ServerImpl dispatcher thread.
prometheusExporterHttpServer.start();
} catch (IOException e) {
throw new RuntimeException(e);
}
Expand Down
Loading