Commit 95473878 authored by Ahmad Sherif's avatar Ahmad Sherif

Update Main.java

parent 592f1e38
......@@ -31,6 +31,7 @@ import com.ongres.pgio.main.stats.serializer.StatSerializer;
import com.ongres.pgio.main.version.Version;
import fi.iki.elonen.NanoHTTPD;
import fi.iki.elonen.util.ServerRunner;
import joptsimple.OptionException;
import joptsimple.OptionParser;
......@@ -140,7 +141,7 @@ public class Main {
private static void runPrometheusService(Config config) throws IOException {
PrometheusService service = new PrometheusService(config);
service.start(NanoHTTPD.SOCKET_READ_TIMEOUT, false);
ServerRunner.executeInstance(service);
}
private static void runCollector(Config config) throws Exception, InterruptedException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment