public class WavefrontYammerMetricsReporter
extends com.yammer.metrics.reporting.AbstractPollingReporter
| 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)
Reporter of a Yammer metrics registry to Wavefront
|
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
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
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.IOException - When we can't remotely connect to Wavefront.Copyright © 2017. All rights reserved.