Commit e35bb80d authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Update PrometheusService.java

parent a17223bf
Pipeline #30168 failed with stage
in 38 seconds
......@@ -38,7 +38,7 @@ public class PrometheusService extends NanoHTTPD {
private final AtomicReference<Optional<StatSnapshot>> previousStatsReference =
new AtomicReference<Optional<StatSnapshot>>(Optional.empty());
public PrometheusService(Config config) {
public PrometheusService(Config config) throws IOException {
super(config.getPrometheusBind().getHostName(),
config.getPrometheusPort());
start(NanoHTTPD.SOCKET_READ_TIMEOUT, false);
......
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