protected ElasticsearchReporter(MetricRegistry registry, Clock clock,
String elasticsearchIndexPrefix, String timestampFieldName,
String metricPrefix, TimeUnit rateUnit, TimeUnit durationUnit,
MetricFilter filter) {
super(registry, "elasticsearch-reporter", filter, rateUnit,
durationUnit);
this.clock = clock;
this.metricPrefix = metricPrefix;
this.timestampFieldName = timestampFieldName;
if (elasticsearchIndexPrefix.endsWith("-")) {
this.elasticsearchIndexPrefix = elasticsearchIndexPrefix;
} else {
this.elasticsearchIndexPrefix = elasticsearchIndexPrefix + "-";
}
jsonFactory = new JsonFactory();
}
ElasticsearchReporter.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:metrics-elasticsearch
作者:
评论列表
文章目录