-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
Before moving from SmallRye to Micrometer, it was unaccepted to register metrics with duplicate names, resulting in an exception thrown, seen in JDG-5253. The Micrometer version accepts the metrics with duplicated names, but unfortunately, this leads to a problem when exporting to Prometheus.
Duplicated names are possible when registering caches that differ only by non-alphanumerical characters, for example, `special-name` and `special/name`. In such cases, all caches work as expected, and Micrometer registers everything, and the console correctly displays the metrics, but Prometheus exports incorrectly, exporting only one of the cache metrics.