private void validateConfig(final MetricsConfiguration config) {
    checkArgument(
        config.getPushPort() >= 0 && config.getPushPort() < 65536, "Invalid port configuration.");
    checkArgument(config.getPushHost() != null, "Required host is not configured.");
    checkArgument(
        !(config.isEnabled() && config.isPushEnabled()),
        "Metrics Push Gateway Service cannot run concurrent with the normal metrics.");
  }
Instantiates a new Metrics push gateway service.

@param configuration the configuration
@param metricsSystem the metrics system
metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsPushGatewayService.java