【发布时间】:2020-10-14 14:33:44
【问题描述】:
我正在使用 MeterReigstry 推送要由 Prometheus 轮询的指标。但是,当我添加动态标签时,出现以下异常:
java.lang.IllegalArgumentException: Prometheus requires that all meters with the same name have the same set of tag keys. There is already an existing meter named 'execution_time_seconds' containing tag keys [a, e, b, c, d]. The meter you are attempting to register has keys [a, b, c, d, f].
这是什么原因造成的?如何解决?我正在使用
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-spring-legacy</artifactId>
<version>1.3.2</version>
</dependency>
【问题讨论】:
标签: java spring-boot micrometer spring-micrometer