public static class DropwizardMetricsReporter.Builder extends Object
DropwizardMetricsReporter instances. Defaults to not using a
prefix, using the default clock, converting rates to events/second, converting durations to
milliseconds, a host named "dropwizard-metrics", no point Tags, and not filtering any metrics.| Modifier and Type | Method and Description |
|---|---|
DropwizardMetricsReporter |
build(com.wavefront.sdk.common.WavefrontSender wavefrontSender)
Builds a
DropwizardMetricsReporter with the given properties, sending metrics and
histograms directly to a given Wavefront server using either proxy or direct ingestion APIs. |
DropwizardMetricsReporter.Builder |
disabledMetricAttributes(Set<com.codahale.metrics.MetricAttribute> disabledMetricAttributes)
Don't report the passed metric attributes for all metrics (e.g.
|
DropwizardMetricsReporter.Builder |
filter(com.codahale.metrics.MetricFilter filter)
Only report metrics which match the given filter.
|
DropwizardMetricsReporter.Builder |
prefixedWith(String prefix)
Prefix all metric names with the given string.
|
DropwizardMetricsReporter.Builder |
reportDayDistribution()
Report histogram distributions aggregated into day intervals
|
DropwizardMetricsReporter.Builder |
reportHourDistribution()
Report histogram distributions aggregated into hour intervals
|
DropwizardMetricsReporter.Builder |
reportMinuteDistribution()
Report histogram distributions aggregated into minute intervals
|
DropwizardMetricsReporter.Builder |
withClock(com.codahale.metrics.Clock clock)
Use the given
Clock instance for the time. |
DropwizardMetricsReporter.Builder |
withJvmMetrics()
Include JVM Metrics from this Reporter.
|
DropwizardMetricsReporter.Builder |
withReporterPointTag(String tagKey,
String tagVal)
Set a point tag for this reporter.
|
DropwizardMetricsReporter.Builder |
withReporterPointTags(Map<String,String> reporterPointTags)
Set the Point Tags for this reporter.
|
DropwizardMetricsReporter.Builder |
withSource(String source)
Set the source for this reporter.
|
public DropwizardMetricsReporter.Builder withClock(com.codahale.metrics.Clock clock)
Clock instance for the time. Defaults to Clock.defaultClock()clock - a Clock instancethispublic DropwizardMetricsReporter.Builder prefixedWith(String prefix)
prefix - the prefix for all metric namesthispublic DropwizardMetricsReporter.Builder withSource(String source)
source - the host for all metricsthispublic DropwizardMetricsReporter.Builder withReporterPointTags(Map<String,String> reporterPointTags)
reporterPointTags - the pointTags Map for all metricsthispublic DropwizardMetricsReporter.Builder withReporterPointTag(String tagKey, String tagVal)
tagKey - the key of the Point TagtagVal - the value of the Point Tagthispublic DropwizardMetricsReporter.Builder filter(com.codahale.metrics.MetricFilter filter)
filter - a MetricFilterthispublic DropwizardMetricsReporter.Builder disabledMetricAttributes(Set<com.codahale.metrics.MetricAttribute> disabledMetricAttributes)
MetricAttribute.disabledMetricAttributes - a set of MetricAttributethispublic DropwizardMetricsReporter.Builder withJvmMetrics()
thispublic DropwizardMetricsReporter.Builder reportMinuteDistribution()
thispublic DropwizardMetricsReporter.Builder reportHourDistribution()
thispublic DropwizardMetricsReporter.Builder reportDayDistribution()
thispublic DropwizardMetricsReporter build(com.wavefront.sdk.common.WavefrontSender wavefrontSender)
DropwizardMetricsReporter with the given properties, sending metrics and
histograms directly to a given Wavefront server using either proxy or direct ingestion APIs.wavefrontSender - Wavefront Sender to send various Wavefront atoms.DropwizardMetricsReporterCopyright © 2018. All rights reserved.