97.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>
下表介绍了要捕获的指标或关闭它的选项。