@Override
public void run() {
logger.info("Postgres server listening on {}:{}", host, port);
Random rand = new Random();
LongMetric bytesInMetric = null, bytesOutMetric = null;
try {
bytesInMetric = reqs.metricsService().addLongMetric(BYTES_IN_METRIC_NAME);
bytesOutMetric = reqs.metricsService().addLongMetric(BYTES_OUT_METRIC_NAME);
reqs.monitor().registerServerMonitor(this);
synchronized(this) {