Class NuxeoDatadogReporter.Builder
java.lang.Object
org.nuxeo.runtime.metrics.reporter.patch.NuxeoDatadogReporter.Builder
- Enclosing class:
 NuxeoDatadogReporter
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()convertDurationsTo(TimeUnit durationUnit) convertRatesTo(TimeUnit rateUnit) emptyTimerAsCounter(boolean value) Choose if an empty timer is reported as a counter to save custom metrics.filter(io.dropwizard.metrics5.MetricFilter filter) withClock(io.dropwizard.metrics5.Clock clock) withExpansions(EnumSet<NuxeoDatadogReporter.Expansion> expansions) withMetricNameFormatter(org.coursera.metrics.datadog.MetricNameFormatter formatter) withPrefix(String prefix) Prefix all metric names with the given string.Tags that would be sent to datadog with each and every metrics.withTransport(org.coursera.metrics.datadog.transport.Transport transport) The transport mechanism to push metrics to datadog. 
- 
Constructor Details
- 
Builder
public Builder(io.dropwizard.metrics5.MetricRegistry registry)  
 - 
 - 
Method Details
- 
withHost
 - 
withEC2Host
- Throws:
 IOException
 - 
withExpansions
public NuxeoDatadogReporter.Builder withExpansions(EnumSet<NuxeoDatadogReporter.Expansion> expansions)  - 
convertRatesTo
 - 
withTags
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
Prefix all metric names with the given string.- Parameters:
 prefix- The prefix for all metric names.
 - 
withClock
 - 
filter
 - 
withMetricNameFormatter
public NuxeoDatadogReporter.Builder withMetricNameFormatter(org.coursera.metrics.datadog.MetricNameFormatter formatter)  - 
convertDurationsTo
 - 
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:
 
 - 
emptyTimerAsCounter
Choose if an empty timer is reported as a counter to save custom metrics.- Since:
 - 2023.8
 
 - 
build
 
 -