public class InfluxDbHttpReporter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
instanceName
The instanceName used to identify the source of the metrics in InfluxDB.
|
protected MetricRegistry |
registry
The registry in which the metrics, that this JMXReporter reports, are
stored.
|
protected String |
reportUrl
The report URL.
|
| Constructor and Description |
|---|
InfluxDbHttpReporter(MetricRegistry registry,
String instanceName,
String reportUrl)
Instantiates a new InfluxDB HTTP reporter.
|
InfluxDbHttpReporter(MetricRegistry registry,
String instanceName,
String reportUrl,
int intervalInSeconds)
Instantiates a new InfluxDB HTTP reporter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
report()
Report.
|
void |
run(int intervalInSeconds)
Run.
|
void |
shutdown()
Handler for shutdown of Executor service.
|
void |
write(OutputStream out)
Write.
|
protected final String reportUrl
protected final String instanceName
protected final MetricRegistry registry
public InfluxDbHttpReporter(MetricRegistry registry, String instanceName, String reportUrl)
registry - the registryinstanceName - the instance namereportUrl - the report URLpublic InfluxDbHttpReporter(MetricRegistry registry, String instanceName, String reportUrl, int intervalInSeconds)
registry - the registryinstanceName - the instance namereportUrl - the report URLintervalInSeconds - the interval in secondspublic boolean report()
public void write(OutputStream out)
out - the outpublic void run(int intervalInSeconds)
intervalInSeconds - the interval in secondspublic void shutdown()
Copyright © 2018. All rights reserved.