84.18. 在 Spring Boot 中使用 Camel Micrometer
当您将 camel-micrometer-starter
用于 Spring Boot 时,如果有 io.micrometer.core.instrument.MeterRegistry
,则 Spring Boot 自动配置将自动启用指标捕获。
例如,要使用 Prometheus 捕获数据,您可以添加以下依赖项:
<dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry-prometheus</artifactId> </dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
下表列出了要捕获的选项,或者指定要关闭的指标。