public class InfluxDbFileReporter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
dateFormat
The date format.
|
protected String |
instanceName
The instanceName used to identify the source of the metrics in InfluxDB.
|
protected int |
maxFileCount
The max file count.
|
protected String |
metricPath
The metric path.
|
protected MetricRegistry |
registry
The registry in which the metrics, that this JMXReporter reports, are
stored.
|
| Constructor and Description |
|---|
InfluxDbFileReporter(MetricRegistry registry,
String instanceName,
String metricPath,
String dateFormat,
int maxFileCount)
Instantiates a new InfluxDB file reporter.
|
InfluxDbFileReporter(MetricRegistry registry,
String instanceName,
String metricPath,
String dateFormat,
int maxFileCount,
int intervalInSeconds)
Instantiates a new InfluxDB file 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 metricPath
protected final int maxFileCount
protected final String dateFormat
protected final String instanceName
protected final MetricRegistry registry
public InfluxDbFileReporter(MetricRegistry registry, String instanceName, String metricPath, String dateFormat, int maxFileCount)
registry - the registryinstanceName - the instance namemetricPath - the metric pathdateFormat - the date formatmaxFileCount - the max file countpublic InfluxDbFileReporter(MetricRegistry registry, String instanceName, String metricPath, String dateFormat, int maxFileCount, int intervalInSeconds)
registry - the registryinstanceName - the instance namemetricPath - the metric pathdateFormat - the date formatmaxFileCount - the max file countintervalInSeconds - 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.