@ -12,12 +12,13 @@
* /
* /
package tech.pegasys.pantheon.metrics.prometheus ;
package tech.pegasys.pantheon.metrics.prometheus ;
import static tech.pegasys.pantheon.metrics.MetricCategory.DEFAULT_METRIC_CATEGORIES ;
import tech.pegasys.pantheon.metrics.MetricCategory ;
import tech.pegasys.pantheon.metrics.MetricCategory ;
import java.util.Arrays ;
import java.util.Arrays ;
import java.util.Collection ;
import java.util.Collection ;
import java.util.Collections ;
import java.util.Collections ;
import java.util.EnumSet ;
import java.util.Objects ;
import java.util.Objects ;
import java.util.Set ;
import java.util.Set ;
@ -46,7 +47,7 @@ public class MetricsConfiguration {
metricsConfiguration . setEnabled ( false ) ;
metricsConfiguration . setEnabled ( false ) ;
metricsConfiguration . setPort ( DEFAULT_METRICS_PORT ) ;
metricsConfiguration . setPort ( DEFAULT_METRICS_PORT ) ;
metricsConfiguration . setHost ( DEFAULT_METRICS_HOST ) ;
metricsConfiguration . setHost ( DEFAULT_METRICS_HOST ) ;
metricsConfiguration . setMetricCategories ( EnumSet . allOf ( MetricCategory . class ) ) ;
metricsConfiguration . setMetricCategories ( DEFAULT_METRIC_CATEGORIES ) ;
metricsConfiguration . setPushEnabled ( false ) ;
metricsConfiguration . setPushEnabled ( false ) ;
metricsConfiguration . setPushPort ( DEFAULT_METRICS_PUSH_PORT ) ;
metricsConfiguration . setPushPort ( DEFAULT_METRICS_PUSH_PORT ) ;
metricsConfiguration . setPushHost ( DEFAULT_METRICS_PUSH_HOST ) ;
metricsConfiguration . setPushHost ( DEFAULT_METRICS_PUSH_HOST ) ;