Apache Camel 中的微米组件 - 公制未显示在 /actuator/prometheus 中

问题描述 投票:0回答:1

我目前正在使用 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>
java spring-boot apache-camel prometheus micrometer
1个回答
0
投票

尝试将这些属性添加到您的 app.property 文件中

  • management.endpoint.health.show-details=始终
  • management.endpoints.web.exposure.include=*
  • management.endpoint.metrics.enabled=true
  • management.metrics.export.prometheus.enabled=true
  • management.endpoint.prometheus.enabled=true
© www.soinside.com 2019 - 2024. All rights reserved.