| Constructor and Description |
|---|
WavefrontYammerMetricsReporter(MetricsRegistry metricsRegistry,
String name,
String hostname,
int port,
int wavefrontHistogramPort,
java.util.function.Supplier<Long> timeSupplier) |
WavefrontYammerMetricsReporter(MetricsRegistry metricsRegistry,
String name,
String hostname,
int port,
int wavefrontHistogramPort,
java.util.function.Supplier<Long> timeSupplier,
boolean prependGroupName,
MetricTranslator metricTranslator,
boolean includeJvmMetrics,
boolean clearMetrics) |
WavefrontYammerMetricsReporter(MetricsRegistry metricsRegistry,
String name,
String hostname,
int port,
int wavefrontHistogramPort,
java.util.function.Supplier<Long> timeSupplier,
boolean prependGroupName,
MetricTranslator metricTranslator,
boolean includeJvmMetrics,
boolean clearMetrics,
boolean sendZeroCounters,
boolean sendEmptyHistograms)
Reporter of a Yammer metrics registry to Wavefront.
|
WavefrontYammerMetricsReporter(MetricsRegistry metricsRegistry,
String name,
String hostname,
int port,
int wavefrontHistogramPort,
java.util.function.Supplier<Long> timeSupplier,
boolean prependGroupName,
MetricTranslator metricTranslator,
boolean includeJvmMetrics,
boolean clearMetrics,
boolean sendZeroCounters,
boolean sendEmptyHistograms,
Long connectionTimeToLiveMillis)
Reporter of a Yammer metrics registry to Wavefront.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
shutdown() |
void |
shutdown(long timeout,
TimeUnit unit)
Shuts down the reporter polling, waiting the specific amount of time for any current polls to
complete.
|
void |
start(long initialDelay,
long period,
TimeUnit unit)
Starts the reporter polling at the given period with specified initial delay
|
void |
start(long period,
TimeUnit unit)
Starts the reporter polling at the given period.
|
protected static final Logger logger
public WavefrontYammerMetricsReporter(MetricsRegistry metricsRegistry, String name, String hostname, int port, int wavefrontHistogramPort, java.util.function.Supplier<Long> timeSupplier) throws IOException
IOExceptionpublic WavefrontYammerMetricsReporter(MetricsRegistry metricsRegistry, String name, String hostname, int port, int wavefrontHistogramPort, java.util.function.Supplier<Long> timeSupplier, boolean prependGroupName, @Nullable MetricTranslator metricTranslator, boolean includeJvmMetrics, boolean clearMetrics) throws IOException
IOExceptionpublic WavefrontYammerMetricsReporter(MetricsRegistry metricsRegistry, String name, String hostname, int port, int wavefrontHistogramPort, java.util.function.Supplier<Long> timeSupplier, boolean prependGroupName, @Nullable MetricTranslator metricTranslator, boolean includeJvmMetrics, boolean clearMetrics, boolean sendZeroCounters, boolean sendEmptyHistograms) throws IOException
metricsRegistry - The registry to scan-and-reportname - A human readable name for this reporterhostname - The remote host where the wavefront proxy residesport - Listening port on Wavefront proxy of graphite-like telemetry datawavefrontHistogramPort - Listening port for Wavefront histogram datatimeSupplier - Get current timestamp, stubbed for testingprependGroupName - If true, outgoing telemetry is of the form "group.name" rather than "name".metricTranslator - If present, applied to each MetricName/Metric pair before flushing to Wavefront. This
is useful for adding point tags. Warning: this is called once per metric per scan, so
it should probably be performant. May be null.clearMetrics - If true, clear histograms and timers per flush.sendZeroCounters - Whether counters with a value of zero is sent across.sendEmptyHistograms - Whether empty histograms are sent across the wire.includeJvmMetrics - Whether JVM metrics are automatically included.IOException - When we can't remotely connect to Wavefront.public WavefrontYammerMetricsReporter(MetricsRegistry metricsRegistry, String name, String hostname, int port, int wavefrontHistogramPort, java.util.function.Supplier<Long> timeSupplier, boolean prependGroupName, @Nullable MetricTranslator metricTranslator, boolean includeJvmMetrics, boolean clearMetrics, boolean sendZeroCounters, boolean sendEmptyHistograms, @Nullable Long connectionTimeToLiveMillis) throws IOException
metricsRegistry - The registry to scan-and-reportname - A human readable name for this reporterhostname - The remote host where the wavefront proxy residesport - Listening port on Wavefront proxy of graphite-like telemetry datawavefrontHistogramPort - Listening port for Wavefront histogram datatimeSupplier - Get current timestamp, stubbed for testingprependGroupName - If true, outgoing telemetry is of the form "group.name" rather than "name".metricTranslator - If present, applied to each MetricName/Metric pair before flushing to Wavefront.
This is useful for adding point tags. Warning: this is called once per metric
per scan, so it should probably be performant. May be null.clearMetrics - If true, clear histograms and timers per flush.sendZeroCounters - Whether counters with a value of zero is sent across.sendEmptyHistograms - Whether empty histograms are sent across the wire.includeJvmMetrics - Whether JVM metrics are automatically included.connectionTimeToLiveMillis - Connection TTL, with expiration checked after each flush. When null,
TTL is not enforced.IOException - When we can't remotely connect to Wavefront.public void start(long period,
TimeUnit unit)
period - the amount of time between pollsunit - the unit for periodpublic void start(long initialDelay,
long period,
TimeUnit unit)
initialDelay - the amount of time before first executionperiod - the amount of time between pollsunit - the unit for initialDelay and periodpublic void shutdown(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - the maximum time to waitunit - the unit for timeoutInterruptedException - if interrupted while waitingpublic void shutdown()
shutdown in class com.yammer.metrics.reporting.AbstractReporterCopyright © 2019. All rights reserved.