@PublicEvolving public class StatsDReporter extends AbstractReporter implements Scheduled
https://github.com/ReadyTalk/metrics-statsd/blob/master/metrics3-statsd/src/main/java/com/readytalk/metrics/StatsDReporter.java
Ported since it was not present in maven central.
Modifier and Type | Field and Description |
---|---|
static String |
ARG_HOST |
static String |
ARG_PORT |
counters, gauges, histograms, log, meters
NO_OP_FILTER
Constructor and Description |
---|
StatsDReporter() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this reporter.
|
String |
filterCharacters(String input)
Filter the given string and generate a resulting string from it.
|
void |
open(MetricConfig config)
Configures this reporter.
|
void |
report()
Report the current measurements.
|
notifyOfAddedMetric, notifyOfRemovedMetric
public static final String ARG_HOST
public static final String ARG_PORT
public void open(MetricConfig config)
MetricReporter
If the reporter was instantiated generically and hence parameter-less, this method is the place where the reporter sets it's basic fields based on configuration values. Otherwise, this method will typically be a no-op since resources can be acquired in the constructor.
This method is always called first on a newly instantiated reporter.
open
in interface MetricReporter
config
- A properties object that contains all parameters set for this reporter.public void close()
MetricReporter
close
in interface MetricReporter
public void report()
Scheduled
public String filterCharacters(String input)
CharacterFilter
For example, one implementation could filter out invalid characters from the input string.
filterCharacters
in interface CharacterFilter
input
- Input stringCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.