You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If my custom index-pattern doesn't start with metrics, the template won't apply
The template pattern metrics* is too broad and prevents me from using indices like metrics-something-* in other applications (in my case, the config of _source breaks the other application. See Configurable _source.enabled Elastic mapping property #1629)
Making the template index-pattern configurable solves these issues.
The text was updated successfully, but these errors were encountered:
izeye
added a commit
to izeye/micrometer
that referenced
this issue
Jul 20, 2020
shakuzen
changed the title
ElasticMeterRegistry: Make template index pattern configurable
ElasticMeterRegistry: template index pattern is hardcoded to metrics*
Sep 17, 2020
The index name is configurable:
micrometer/implementations/micrometer-registry-elastic/src/main/java/io/micrometer/elastic/ElasticMeterRegistry.java
Lines 291 to 294 in a0e46fd
However, the index pattern in the template is not:
micrometer/implementations/micrometer-registry-elastic/src/main/java/io/micrometer/elastic/ElasticMeterRegistry.java
Lines 93 to 95 in a0e46fd
This results in two issues:
metrics
, the template won't applymetrics*
is too broad and prevents me from using indices likemetrics-something-*
in other applications (in my case, the config of_source
breaks the other application. See Configurable _source.enabled Elastic mapping property #1629)Making the template index-pattern configurable solves these issues.
The text was updated successfully, but these errors were encountered: