/** * A builder for {@link WavefrontReporter} instances. Defaults to not using a prefix, using the * default clock, converting rates to events/second, converting durations to milliseconds, a host * named "unknown", no point Tags, and not filtering any metrics. */ public static class Builder { private final MetricRegistry registry; private Clock clock; private String prefix; private TimeUnit rateUnit; private TimeUnit durationUnit; private MetricFilter filter; private String source; private Map<String, String> pointTags; private boolean includeJvmMetrics; private Set<MetricAttribute> disabledMetricAttributes; private Builder(MetricRegistry registry) { this.registry = registry; this.clock = Clock.defaultClock(); this.prefix = null; this.rateUnit = TimeUnit.SECONDS; this.durationUnit = TimeUnit.MILLISECONDS; this.filter = MetricFilter.ALL; this.source = "dropwizard-metrics"; this.pointTags = new HashMap<>(); this.includeJvmMetrics = false; this.disabledMetricAttributes = Collections.emptySet(); }
/** * A builder for {@link WavefrontReporter} instances. Defaults to not using a prefix, using the * default clock, converting rates to events/second, converting durations to milliseconds, a host * named "unknown", no point Tags, and not filtering any metrics. */ public static class Builder { private final MetricRegistry registry; private Clock clock; private String prefix; private TimeUnit rateUnit; private TimeUnit durationUnit; private MetricFilter filter; private String source; private Map<String, String> pointTags; private boolean includeJvmMetrics; private Set<MetricAttribute> disabledMetricAttributes; private Builder(MetricRegistry registry) { this.registry = registry; this.clock = Clock.defaultClock(); this.prefix = null; this.rateUnit = TimeUnit.SECONDS; this.durationUnit = TimeUnit.MILLISECONDS; this.filter = MetricFilter.ALL; this.source = "dropwizard-metrics"; this.pointTags = new HashMap<>(); this.includeJvmMetrics = false; this.disabledMetricAttributes = Collections.emptySet(); }