Package io.dropwizard.metrics.common
Class ConsoleReporterFactory
java.lang.Object
io.dropwizard.metrics.common.BaseReporterFactory
io.dropwizard.metrics.common.BaseFormattedReporterFactory
io.dropwizard.metrics.common.ConsoleReporterFactory
- All Implemented Interfaces:
Discoverable
,ReporterFactory
A factory for configuring and building
ConsoleReporter
instances.
Configuration Parameters:
Name | Default | Description |
timeZone | UTC | The timezone to display dates/times for. |
output | stdout | The stream to write to. One of stdout or stderr . |
See BaseFormattedReporterFactory for more options. |
||
See BaseReporterFactory for more options. |
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.codahale.metrics.ScheduledReporter
build
(com.codahale.metrics.MetricRegistry registry) Configures and builds aScheduledReporter
instance for the given registry.void
void
setTimeZone
(TimeZone timeZone) Methods inherited from class io.dropwizard.metrics.common.BaseFormattedReporterFactory
getLocale, setLocale
Methods inherited from class io.dropwizard.metrics.common.BaseReporterFactory
getDisabledAttributes, getDurationUnit, getExcludes, getExcludesAttributes, getFilter, getFrequency, getIncludes, getIncludesAttributes, getRateUnit, getUseRegexFilters, getUseSubstringMatching, setDurationUnit, setExcludes, setExcludesAttributes, setFrequency, setIncludes, setIncludesAttributes, setRateUnit, setUseRegexFilters, setUseSubstringMatching
-
Constructor Details
-
ConsoleReporterFactory
public ConsoleReporterFactory()
-
-
Method Details
-
getTimeZone
-
setTimeZone
-
getOutput
-
setOutput
-
build
public com.codahale.metrics.ScheduledReporter build(com.codahale.metrics.MetricRegistry registry) Description copied from interface:ReporterFactory
Configures and builds aScheduledReporter
instance for the given registry.- Parameters:
registry
- the metrics registry to report metrics from.- Returns:
- a reporter configured for the given metrics registry.
-