【发布时间】:2019-10-24 07:24:20
【问题描述】:
我正在尝试将来自 /actuator/camelroutes 的 Actuator Camel 指标(路由指标,如交换/交易数量)转发/添加到 Prometheus Actuator 端点。我有没有办法配置 Camel 以将这些指标添加到 PrometheusMeterRegistry?
我已经尝试添加:
camel.component.metrics.metric-registry=io.micrometer.prometheus.PrometheusMeterRegistry
在我的application.properties 中,根据此处的文档:https://camel.apache.org/components/latest/metrics-component.html
但在actuator/prometheus 中仍然没有显示任何与 Apache Camel 相关的内容
以下是我在 Spring Boot 2.1.9 和 Apache Camel 2.24.2 中使用的依赖项:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-metrics-starter</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
【问题讨论】:
标签: java spring-boot apache-camel prometheus