Package org.nuxeo.runtime.metrics
Class AbstractMetricsReporter
java.lang.Object
org.nuxeo.runtime.metrics.AbstractMetricsReporter
- All Implemented Interfaces:
MetricsReporter
- Direct Known Subclasses:
DatadogReporter
,DatadogTraceReporter
,GraphiteReporter
,JaegerReporter
,JmxReporter
,PrometheusReporter
,StreamMetricsNuxeoReporter
,ZipkinReporter
,ZPageReporter
- Since:
- 11.1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected String
protected String
protected String
protected boolean
getOptionAsBoolean
(String name, boolean defaultValue) protected int
getOptionAsInt
(String name, int defaultValue) protected long
void
Called on new instance.protected String
requireOption
(String name) protected String
requireOption
(String name, String errorMessage) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.metrics.MetricsReporter
start, stop
-
Field Details
-
URL_OPTION
- See Also:
-
TIMEOUT_OPTION
- See Also:
-
DEFAULT_TIMEOUT
-
SERVICE_OPTION
- See Also:
-
DEFAULT_SERVICE
- See Also:
-
MAX_ATTRIBUTES_OPTION
- See Also:
-
DEFAULT_MAX_ATTRIBUTES
- See Also:
-
MAX_ANNOTATIONS_OPTION
- See Also:
-
DEFAULT_MAX_ANNOTATIONS
- See Also:
-
SAMPLER_PROB_OPTION
- See Also:
-
DEFAULT_SAMPLER_PROB
- See Also:
-
options
-
pollInterval
protected long pollInterval
-
-
Constructor Details
-
AbstractMetricsReporter
public AbstractMetricsReporter()
-
-
Method Details
-
enableTracing
public void enableTracing() -
init
Description copied from interface:MetricsReporter
Called on new instance.- Specified by:
init
in interfaceMetricsReporter
-
getCurrentHostname
-
getPollInterval
protected long getPollInterval() -
getHostnameFromNuxeoUrl
-
getOption
-
requireOption
-
requireOption
-
getOptionAsInt
-
getOptionAsBoolean
-