Class NuxeoDatadogReporter.Builder
- java.lang.Object
-
- org.nuxeo.runtime.metrics.reporter.patch.NuxeoDatadogReporter.Builder
-
- Enclosing class:
- NuxeoDatadogReporter
public static class NuxeoDatadogReporter.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder(io.dropwizard.metrics5.MetricRegistry registry)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(io.dropwizard.metrics5.MetricRegistry registry)
-
-
Method Detail
-
withHost
public NuxeoDatadogReporter.Builder withHost(String host)
-
withEC2Host
public NuxeoDatadogReporter.Builder withEC2Host() throws IOException
- Throws:
IOException
-
withExpansions
public NuxeoDatadogReporter.Builder withExpansions(EnumSet<NuxeoDatadogReporter.Expansion> expansions)
-
convertRatesTo
public NuxeoDatadogReporter.Builder convertRatesTo(TimeUnit rateUnit)
-
withTags
public NuxeoDatadogReporter.Builder withTags(List<String> tags)
Tags that would be sent to datadog with each and every metrics. This could be used to set global metrics like version of the app, environment etc.- Parameters:
tags
- List of tags eg: [env:prod, version:1.0.1, name:kafka_client] etc
-
withPrefix
public NuxeoDatadogReporter.Builder withPrefix(String prefix)
Prefix all metric names with the given string.- Parameters:
prefix
- The prefix for all metric names.
-
withClock
public NuxeoDatadogReporter.Builder withClock(io.dropwizard.metrics5.Clock clock)
-
filter
public NuxeoDatadogReporter.Builder filter(io.dropwizard.metrics5.MetricFilter filter)
-
withMetricNameFormatter
public NuxeoDatadogReporter.Builder withMetricNameFormatter(org.coursera.metrics.datadog.MetricNameFormatter formatter)
-
convertDurationsTo
public NuxeoDatadogReporter.Builder convertDurationsTo(TimeUnit durationUnit)
-
withTransport
public NuxeoDatadogReporter.Builder withTransport(org.coursera.metrics.datadog.transport.Transport transport)
The transport mechanism to push metrics to datadog. Supports http webservice and UDP dogstatsd protocol as of now.- See Also:
HttpTransport
,UdpTransport
-
build
public NuxeoDatadogReporter build()
-
-