public Optional<Integer> getMetricsPort() {
    if (metrics.isPresent()) {
      return metrics.get().getPort();
    } else {
      return Optional.empty();
    }
  }
Gets metrics port.

@return the metrics port
app/src/main/java/org/hyperledger/besu/Runner.java