ElasticsearchReporter.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:metrics-elasticsearch 作者:
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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号