我目前正在使用 Apache Camel 并使用 Micrometer 组件来获取指标。我已经添加了必要的依赖项,但我面临一个问题,即指标未显示在 /actuator/prometheus 端点中。
Spring boot version: 3.1.4.
Java version: 17.
Apache camel spring boot dependency:
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-micrometer-starter</artifactId>
<version>4.1.0</version>
</dependency>
尝试将这些属性添加到您的 app.property 文件中