@Override
  public boolean isMetricCategoryEnabled(final MetricCategory metricCategory) {
    checkNotNull(
        metricsConfiguration, "Metrics configuration must be set before calling this method");
    return (metricsConfiguration.isEnabled() || metricsConfiguration.isPushEnabled())
        && metricsConfiguration.getMetricCategories().contains(metricCategory);
  }
Add registry category.

@param metricCategory the metric category
metrics/core/src/main/java/org/hyperledger/besu/metrics/MetricCategoryRegistryImpl.java