This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 68e11801e5d CAMEL-18754: camel-micrometer - Add auto configuration for
capturing metrics.
68e11801e5d is described below
commit 68e11801e5d370965f22de7e6f91fb98040a3255
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Nov 27 10:18:42 2022 +0100
CAMEL-18754: camel-micrometer - Add auto configuration for capturing
metrics.
---
.../src/main/docs/micrometer-component.adoc | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git
a/components/camel-micrometer/src/main/docs/micrometer-component.adoc
b/components/camel-micrometer/src/main/docs/micrometer-component.adoc
index 1f9407525c1..bfe0d98cfd6 100644
--- a/components/camel-micrometer/src/main/docs/micrometer-component.adoc
+++ b/components/camel-micrometer/src/main/docs/micrometer-component.adoc
@@ -530,10 +530,26 @@ and add a `JmxMeterRegistry` instance:
The `HierarchicalNameMapper` strategy determines how meter name and tags are
assembled into
an MBean name.
-== Example
+== Examples
-`camel-example-micrometer` provides an example how to set up Micrometer
monitoring with
-Camel using Java configuration and a Prometheus backend.
+You can find examples for Camel standalone and Spring Boot for how to set up
Micrometer monitoring with
+Camel and a Prometheus backend.
+== Using Camel Micrometer with Spring Boot
+
+When you use `camel-micrometer-starter` with Spring Boot, then Spring Boot
auto configuration
+will automatically enable metrics capture if a
`io.micrometer.core.instrument.MeterRegistry` is available.
+
+For example to capture data with Prometheus, you can add the following
dependency:
+
+[source,xml]
+----
+<dependency>
+ <groupId>io.micrometer</groupId>
+ <artifactId>micrometer-registry-prometheus</artifactId>
+</dependency>
+----
+
+See the following table for options to specify what metrics to capture, or to
turn it off.
include::spring-boot:partial$starter.adoc[]