public MetricsConfiguration build() {
      return new MetricsConfiguration(
          enabled,
          port,
          protocol,
          host,
          metricCategories,
          pushEnabled,
          pushPort,
          pushHost,
          pushInterval,
          prometheusJob,
          hostsAllowlist,
          timersEnabled,
          idleTimeout);
    }
Build metrics configuration.

@return the metrics configuration
metrics/core/src/main/java/org/hyperledger/besu/metrics/prometheus/MetricsConfiguration.java