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,
java.util.function.Function<MetricName,MetricName> transformer)
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 java.util.function.Function<MetricName,MetricName> transformer) 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".transformer - If present, applied to each MetricName 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.IOException - When we can't remotely connect to Wavefront.Copyright © 2017. All rights reserved.