Skip to content

Commit

Permalink
Include index date separator in index pattern for ElasticMeterRegistry (
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye committed Jan 13, 2021
1 parent 178ad9d commit 3d79b46
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -197,7 +197,8 @@ private void createIndexTemplateIfNeeded() {
}

private String getTemplateBody() {
return majorVersion < 7 ? TEMPLATE_BODY_BEFORE_VERSION_7.apply(config.index()) : TEMPLATE_BODY_AFTER_VERSION_7.apply(config.index());
String indexPrefix = config.index() + config.indexDateSeparator();
return majorVersion < 7 ? TEMPLATE_BODY_BEFORE_VERSION_7.apply(indexPrefix) : TEMPLATE_BODY_AFTER_VERSION_7.apply(indexPrefix);
}

@Override
Expand Down

0 comments on commit 3d79b46

Please sign in to comment.