Class DatadogReporter
- java.lang.Object
-
- org.nuxeo.runtime.metrics.AbstractMetricsReporter
-
- org.nuxeo.runtime.metrics.reporter.DatadogReporter
-
- All Implemented Interfaces:
MetricsReporter
public class DatadogReporter extends AbstractMetricsReporter
Reports metrics to Datadog.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringhostnameprotected NuxeoDatadogReporterreporterprotected List<String>tags-
Fields inherited from class org.nuxeo.runtime.metrics.AbstractMetricsReporter
DEFAULT_MAX_ANNOTATIONS, DEFAULT_MAX_ATTRIBUTES, DEFAULT_SAMPLER_PROB, DEFAULT_SERVICE, DEFAULT_TIMEOUT, MAX_ANNOTATIONS_OPTION, MAX_ATTRIBUTES_OPTION, options, pollInterval, SAMPLER_PROB_OPTION, SERVICE_OPTION, TIMEOUT_OPTION, URL_OPTION
-
-
Constructor Summary
Constructors Constructor Description DatadogReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EnumSet<NuxeoDatadogReporter.Expansion>getExpansions(Set<io.dropwizard.metrics5.MetricAttribute> deniedExpansions)protected List<String>getTags()voidinit(long pollInterval, Map<String,String> options)Called on new instance.voidstart(io.dropwizard.metrics5.MetricRegistry registry, io.dropwizard.metrics5.MetricFilter filter, Set<io.dropwizard.metrics5.MetricAttribute> deniedExpansions)Starts metrics reporter.voidstop()Stops metrics reporter.-
Methods inherited from class org.nuxeo.runtime.metrics.AbstractMetricsReporter
enableTracing, getCurrentHostname, getHostnameFromNuxeoUrl, getOption, getOptionAsBoolean, getOptionAsInt, getPollInterval, requireOption, requireOption
-
-
-
-
Field Detail
-
reporter
protected NuxeoDatadogReporter reporter
-
hostname
protected String hostname
-
-
Method Detail
-
init
public void init(long pollInterval, Map<String,String> options)Description copied from interface:MetricsReporterCalled on new instance.- Specified by:
initin interfaceMetricsReporter- Overrides:
initin classAbstractMetricsReporter
-
start
public void start(io.dropwizard.metrics5.MetricRegistry registry, io.dropwizard.metrics5.MetricFilter filter, Set<io.dropwizard.metrics5.MetricAttribute> deniedExpansions)Description copied from interface:MetricsReporterStarts metrics reporter.
-
getExpansions
protected EnumSet<NuxeoDatadogReporter.Expansion> getExpansions(Set<io.dropwizard.metrics5.MetricAttribute> deniedExpansions)
-
stop
public void stop()
Description copied from interface:MetricsReporterStops metrics reporter.
-
-