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 cc104264f501 CAMEL-23832: camel-metrics - improve the component and 
option descriptions (#30970)
cc104264f501 is described below

commit cc104264f501f2fa9db4f606d1fa9bc1694d96ed
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 14:46:28 2026 +0100

    CAMEL-23832: camel-metrics - improve the component and option descriptions 
(#30970)
    
    This commit rewrites the component description, the metricRegistry 
component option, the 8 endpoint options and the 7
    headers of metrics. The old texts only said "Override ... value in URI" or 
repeated the option name. The new texts say
    which metric type reads each value, what happens when it is not set (a 
meter marks one event, a counter is incremented
    by one, a histogram or timer logs a warning), that increment wins over 
decrement, and which header replaces each option.
    
    Documentation only, no behavior change. The component JSON, the catalog 
copy, the doc page header and the DSL are
    regenerated. camel-metrics is marked as done in 
tasks/component-descriptions.md.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../apache/camel/catalog/components/metrics.json   |  34 +++----
 .../camel/catalog/docs/metrics-component.adoc      |   2 +-
 .../apache/camel/component/metrics/metrics.json    |  34 +++----
 .../src/main/docs/metrics-component.adoc           |   2 +-
 .../camel/component/metrics/MetricsComponent.java  |   8 +-
 .../camel/component/metrics/MetricsConstants.java  |  23 +++--
 .../camel/component/metrics/MetricsEndpoint.java   |  31 ++++--
 .../component/ComponentsBuilderFactory.java        |   4 +-
 .../dsl/MetricsComponentBuilderFactory.java        |  14 ++-
 .../builder/endpoint/EndpointHeaderBuilders.java   |   4 +-
 .../builder/endpoint/StaticEndpointBuilders.java   |  20 ++--
 .../dsl/MetricsEndpointBuilderFactory.java         | 107 +++++++++++++++------
 tasks/component-descriptions.md                    |   2 +-
 13 files changed, 180 insertions(+), 105 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/metrics.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/metrics.json
index e57531139ac6..a0071e089b83 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/metrics.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/metrics.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "metrics",
     "title": "Metrics",
-    "description": "Collect various metrics directly from Camel routes using 
the DropWizard metrics library.",
+    "description": "Update counters, gauges, histograms, meters and timers of 
a Dropwizard Metrics registry from Camel routes.",
     "deprecated": false,
     "firstVersion": "2.14.0",
     "label": "monitoring",
@@ -27,30 +27,30 @@
   "componentProperties": {
     "lazyStartProducer": { "index": 0, "kind": "property", "displayName": 
"Lazy Start Producer", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether the producer should be started lazy (on the first message). By 
starting lazy you can use this to allow CamelContext and routes to startup in 
situations where a producer may otherwise fail [...]
     "autowiredEnabled": { "index": 1, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
-    "metricRegistry": { "index": 2, "kind": "property", "displayName": "Metric 
Registry", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "com.codahale.metrics.MetricRegistry", "deprecated": 
false, "autowired": false, "secret": false, "description": "To use a custom 
configured MetricRegistry." }
+    "metricRegistry": { "index": 2, "kind": "property", "displayName": "Metric 
Registry", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "com.codahale.metrics.MetricRegistry", "deprecated": 
false, "autowired": false, "secret": false, "description": "The Dropwizard 
MetricRegistry that holds the metrics. If not set, the component uses the bean 
named metricRegistry, or the only MetricRegistry bean, of the Camel registry, 
and else creates a registr [...]
   },
   "headers": {
-    "CamelMetricsTimerAction": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": 
"org.apache.camel.component.metrics.MetricsTimerAction", "enum": [ "start", 
"stop" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "Override timer action in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_TIMER_ACTION" },
-    "CamelMetricsMeterMark": { "index": 1, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Override mark value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_METER_MARK" },
-    "CamelMetricsHistogramValue": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "Override histogram value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_HISTOGRAM_VALUE" },
-    "CamelMetricsCounterDecrement": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "Override decrement value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_COUNTER_DECREMENT" 
},
-    "CamelMetricsCounterIncrement": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "Override increment value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_COUNTER_INCREMENT" 
},
-    "CamelMetricsGaugeSubject": { "index": 5, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "Object", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Override subject value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_GAUGE_SUBJECT" },
-    "CamelMetricsName": { "index": 6, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Override name value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_METRIC_NAME" }
+    "CamelMetricsTimerAction": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": 
"org.apache.camel.component.metrics.MetricsTimerAction", "enum": [ "start", 
"stop" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "The timer action, start or stop, for the timer type. It 
replaces the action option.", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_TIMER_ACTION" },
+    "CamelMetricsMeterMark": { "index": 1, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
number of events to mark on the meter, for the meter type. It replaces the mark 
option.", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_METER_MARK" },
+    "CamelMetricsHistogramValue": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The value to add to the histogram, for the histogram type. It 
replaces the value option.", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_HISTOGRAM_VALUE" },
+    "CamelMetricsCounterDecrement": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The amount to subtract from the counter, for the counter type. 
It replaces the decrement option, and is used only when no increment is set.", 
"constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_COUNTER_DECREMENT" 
},
+    "CamelMetricsCounterIncrement": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The amount to add to the counter, for the counter type. It 
replaces the increment option.", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_COUNTER_INCREMENT" 
},
+    "CamelMetricsGaugeSubject": { "index": 5, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "Object", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
object that the gauge returns as its value, for the gauge type. It replaces the 
value of the gauge, or registers the gauge if it does not exist yet.", 
"constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_GAUGE_SUBJECT" },
+    "CamelMetricsName": { "index": 6, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
name of the metric. If not empty, it replaces the metricsName of the 
endpoint.", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_METRIC_NAME" }
   },
   "bodyTypes": {
     "producerIn": { "carriers": [ "any" ], "description": "Not used: the 
values come from the options or the CamelMetrics headers, such as 
CamelMetricsCounterIncrement or CamelMetricsGaugeSubject" },
     "producerOut": { "carriers": [ "unchanged" ], "description": "Unchanged; 
the CamelMetrics headers are removed" }
   },
   "properties": {
-    "metricsType": { "index": 0, "kind": "path", "displayName": "Metrics 
Type", "group": "producer", "label": "", "required": true, "type": "enum", 
"javaType": "org.apache.camel.component.metrics.MetricsType", "enum": [ 
"gauge", "counter", "histogram", "meter", "timer" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "Type of metrics" },
-    "metricsName": { "index": 1, "kind": "path", "displayName": "Metrics 
Name", "group": "producer", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "Name of metrics" },
-    "action": { "index": 2, "kind": "parameter", "displayName": "Action", 
"group": "producer", "label": "", "required": false, "type": "enum", 
"javaType": "org.apache.camel.component.metrics.MetricsTimerAction", "enum": [ 
"start", "stop" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "Action when using timer type" },
-    "decrement": { "index": 3, "kind": "parameter", "displayName": 
"Decrement", "group": "producer", "label": "", "required": false, "type": 
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": 
false, "secret": false, "description": "Decrement value when using counter 
type" },
-    "increment": { "index": 4, "kind": "parameter", "displayName": 
"Increment", "group": "producer", "label": "", "required": false, "type": 
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": 
false, "secret": false, "description": "Increment value when using counter 
type" },
-    "mark": { "index": 5, "kind": "parameter", "displayName": "Mark", "group": 
"producer", "label": "", "required": false, "type": "integer", "javaType": 
"java.lang.Long", "deprecated": false, "autowired": false, "secret": false, 
"description": "Mark when using meter type" },
-    "subject": { "index": 6, "kind": "parameter", "displayName": "Subject", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "java.lang.Object", "deprecated": false, "autowired": false, 
"secret": false, "description": "Subject value when using gauge type" },
-    "value": { "index": 7, "kind": "parameter", "displayName": "Value", 
"group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "java.lang.Long", "deprecated": false, "autowired": false, 
"secret": false, "description": "Value value when using histogram type" },
+    "metricsType": { "index": 0, "kind": "path", "displayName": "Metrics 
Type", "group": "producer", "label": "", "required": true, "type": "enum", 
"javaType": "org.apache.camel.component.metrics.MetricsType", "enum": [ 
"gauge", "counter", "histogram", "meter", "timer" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "The type of the metric. If 
the URI gives only a name, as in metrics:myName, the type is meter." },
+    "metricsName": { "index": 1, "kind": "path", "displayName": "Metrics 
Name", "group": "producer", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The name of the metric in the MetricRegistry. 
A CamelMetricsName header that is not empty replaces this option." },
+    "action": { "index": 2, "kind": "parameter", "displayName": "Action", 
"group": "producer", "label": "", "required": false, "type": "enum", 
"javaType": "org.apache.camel.component.metrics.MetricsTimerAction", "enum": [ 
"start", "stop" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "For the timer type: start starts a timer and stores it on the 
exchange, and stop stops the timer that start stored on the same exchange and 
records the elapsed time. If no actio [...]
+    "decrement": { "index": 3, "kind": "parameter", "displayName": 
"Decrement", "group": "producer", "label": "", "required": false, "type": 
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": 
false, "secret": false, "description": "For the counter type: the amount to 
subtract from the counter, used only when no increment is set by the option or 
the CamelMetricsCounterIncrement header. The CamelMetricsCounterDecrement 
header replaces this option." },
+    "increment": { "index": 4, "kind": "parameter", "displayName": 
"Increment", "group": "producer", "label": "", "required": false, "type": 
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": 
false, "secret": false, "description": "For the counter type: the amount to add 
to the counter. It wins over decrement, and if neither is set the counter is 
incremented by one. The CamelMetricsCounterIncrement header replaces this 
option." },
+    "mark": { "index": 5, "kind": "parameter", "displayName": "Mark", "group": 
"producer", "label": "", "required": false, "type": "integer", "javaType": 
"java.lang.Long", "deprecated": false, "autowired": false, "secret": false, 
"description": "For the meter type: the number of events to mark on the meter. 
If not set, the meter marks one event. The CamelMetricsMeterMark header 
replaces this option." },
+    "subject": { "index": 6, "kind": "parameter", "displayName": "Subject", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "java.lang.Object", "deprecated": false, "autowired": false, 
"secret": false, "description": "For the gauge type: the object that the gauge 
returns as its value, for example a bean reference. The producer registers the 
gauge with it when the producer starts, and the CamelMetricsGaugeSubject header 
replaces the value of the gauge." },
+    "value": { "index": 7, "kind": "parameter", "displayName": "Value", 
"group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "java.lang.Long", "deprecated": false, "autowired": false, 
"secret": false, "description": "For the histogram type: the value to add to 
the histogram. If not set, the producer logs a warning and does not update the 
histogram. The CamelMetricsHistogramValue header replaces this option." },
     "lazyStartProducer": { "index": 8, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produc [...]
   }
 }
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/metrics-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/metrics-component.adoc
index e84bfe571880..b9ff412e49c3 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/metrics-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/metrics-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Metrics
 :shortname: metrics
 :artifactid: camel-metrics
-:description: Collect various metrics directly from Camel routes using the 
DropWizard metrics library.
+:description: Update counters, gauges, histograms, meters and timers of a 
Dropwizard Metrics registry from Camel routes.
 :since: 2.14
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-metrics/src/generated/resources/META-INF/org/apache/camel/component/metrics/metrics.json
 
b/components/camel-metrics/src/generated/resources/META-INF/org/apache/camel/component/metrics/metrics.json
index e57531139ac6..a0071e089b83 100644
--- 
a/components/camel-metrics/src/generated/resources/META-INF/org/apache/camel/component/metrics/metrics.json
+++ 
b/components/camel-metrics/src/generated/resources/META-INF/org/apache/camel/component/metrics/metrics.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "metrics",
     "title": "Metrics",
-    "description": "Collect various metrics directly from Camel routes using 
the DropWizard metrics library.",
+    "description": "Update counters, gauges, histograms, meters and timers of 
a Dropwizard Metrics registry from Camel routes.",
     "deprecated": false,
     "firstVersion": "2.14.0",
     "label": "monitoring",
@@ -27,30 +27,30 @@
   "componentProperties": {
     "lazyStartProducer": { "index": 0, "kind": "property", "displayName": 
"Lazy Start Producer", "group": "producer", "label": "producer", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": 
"Whether the producer should be started lazy (on the first message). By 
starting lazy you can use this to allow CamelContext and routes to startup in 
situations where a producer may otherwise fail [...]
     "autowiredEnabled": { "index": 1, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
-    "metricRegistry": { "index": 2, "kind": "property", "displayName": "Metric 
Registry", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "com.codahale.metrics.MetricRegistry", "deprecated": 
false, "autowired": false, "secret": false, "description": "To use a custom 
configured MetricRegistry." }
+    "metricRegistry": { "index": 2, "kind": "property", "displayName": "Metric 
Registry", "group": "advanced", "label": "advanced", "required": false, "type": 
"object", "javaType": "com.codahale.metrics.MetricRegistry", "deprecated": 
false, "autowired": false, "secret": false, "description": "The Dropwizard 
MetricRegistry that holds the metrics. If not set, the component uses the bean 
named metricRegistry, or the only MetricRegistry bean, of the Camel registry, 
and else creates a registr [...]
   },
   "headers": {
-    "CamelMetricsTimerAction": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": 
"org.apache.camel.component.metrics.MetricsTimerAction", "enum": [ "start", 
"stop" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "Override timer action in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_TIMER_ACTION" },
-    "CamelMetricsMeterMark": { "index": 1, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Override mark value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_METER_MARK" },
-    "CamelMetricsHistogramValue": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "Override histogram value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_HISTOGRAM_VALUE" },
-    "CamelMetricsCounterDecrement": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "Override decrement value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_COUNTER_DECREMENT" 
},
-    "CamelMetricsCounterIncrement": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "Override increment value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_COUNTER_INCREMENT" 
},
-    "CamelMetricsGaugeSubject": { "index": 5, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "Object", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Override subject value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_GAUGE_SUBJECT" },
-    "CamelMetricsName": { "index": 6, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Override name value in URI", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_METRIC_NAME" }
+    "CamelMetricsTimerAction": { "index": 0, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": 
"org.apache.camel.component.metrics.MetricsTimerAction", "enum": [ "start", 
"stop" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "The timer action, start or stop, for the timer type. It 
replaces the action option.", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_TIMER_ACTION" },
+    "CamelMetricsMeterMark": { "index": 1, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "long", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
number of events to mark on the meter, for the meter type. It replaces the mark 
option.", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_METER_MARK" },
+    "CamelMetricsHistogramValue": { "index": 2, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The value to add to the histogram, for the histogram type. It 
replaces the value option.", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_HISTOGRAM_VALUE" },
+    "CamelMetricsCounterDecrement": { "index": 3, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The amount to subtract from the counter, for the counter type. 
It replaces the decrement option, and is used only when no increment is set.", 
"constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_COUNTER_DECREMENT" 
},
+    "CamelMetricsCounterIncrement": { "index": 4, "kind": "header", 
"displayName": "", "group": "producer", "label": "", "required": false, 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The amount to add to the counter, for the counter type. It 
replaces the increment option.", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_COUNTER_INCREMENT" 
},
+    "CamelMetricsGaugeSubject": { "index": 5, "kind": "header", "displayName": 
"", "group": "producer", "label": "", "required": false, "javaType": "Object", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
object that the gauge returns as its value, for the gauge type. It replaces the 
value of the gauge, or registers the gauge if it does not exist yet.", 
"constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_GAUGE_SUBJECT" },
+    "CamelMetricsName": { "index": 6, "kind": "header", "displayName": "", 
"group": "producer", "label": "", "required": false, "javaType": "String", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
name of the metric. If not empty, it replaces the metricsName of the 
endpoint.", "constantName": 
"org.apache.camel.component.metrics.MetricsConstants#HEADER_METRIC_NAME" }
   },
   "bodyTypes": {
     "producerIn": { "carriers": [ "any" ], "description": "Not used: the 
values come from the options or the CamelMetrics headers, such as 
CamelMetricsCounterIncrement or CamelMetricsGaugeSubject" },
     "producerOut": { "carriers": [ "unchanged" ], "description": "Unchanged; 
the CamelMetrics headers are removed" }
   },
   "properties": {
-    "metricsType": { "index": 0, "kind": "path", "displayName": "Metrics 
Type", "group": "producer", "label": "", "required": true, "type": "enum", 
"javaType": "org.apache.camel.component.metrics.MetricsType", "enum": [ 
"gauge", "counter", "histogram", "meter", "timer" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "Type of metrics" },
-    "metricsName": { "index": 1, "kind": "path", "displayName": "Metrics 
Name", "group": "producer", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "Name of metrics" },
-    "action": { "index": 2, "kind": "parameter", "displayName": "Action", 
"group": "producer", "label": "", "required": false, "type": "enum", 
"javaType": "org.apache.camel.component.metrics.MetricsTimerAction", "enum": [ 
"start", "stop" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "Action when using timer type" },
-    "decrement": { "index": 3, "kind": "parameter", "displayName": 
"Decrement", "group": "producer", "label": "", "required": false, "type": 
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": 
false, "secret": false, "description": "Decrement value when using counter 
type" },
-    "increment": { "index": 4, "kind": "parameter", "displayName": 
"Increment", "group": "producer", "label": "", "required": false, "type": 
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": 
false, "secret": false, "description": "Increment value when using counter 
type" },
-    "mark": { "index": 5, "kind": "parameter", "displayName": "Mark", "group": 
"producer", "label": "", "required": false, "type": "integer", "javaType": 
"java.lang.Long", "deprecated": false, "autowired": false, "secret": false, 
"description": "Mark when using meter type" },
-    "subject": { "index": 6, "kind": "parameter", "displayName": "Subject", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "java.lang.Object", "deprecated": false, "autowired": false, 
"secret": false, "description": "Subject value when using gauge type" },
-    "value": { "index": 7, "kind": "parameter", "displayName": "Value", 
"group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "java.lang.Long", "deprecated": false, "autowired": false, 
"secret": false, "description": "Value value when using histogram type" },
+    "metricsType": { "index": 0, "kind": "path", "displayName": "Metrics 
Type", "group": "producer", "label": "", "required": true, "type": "enum", 
"javaType": "org.apache.camel.component.metrics.MetricsType", "enum": [ 
"gauge", "counter", "histogram", "meter", "timer" ], "deprecated": false, 
"autowired": false, "secret": false, "description": "The type of the metric. If 
the URI gives only a name, as in metrics:myName, the type is meter." },
+    "metricsName": { "index": 1, "kind": "path", "displayName": "Metrics 
Name", "group": "producer", "label": "", "required": true, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The name of the metric in the MetricRegistry. 
A CamelMetricsName header that is not empty replaces this option." },
+    "action": { "index": 2, "kind": "parameter", "displayName": "Action", 
"group": "producer", "label": "", "required": false, "type": "enum", 
"javaType": "org.apache.camel.component.metrics.MetricsTimerAction", "enum": [ 
"start", "stop" ], "deprecated": false, "autowired": false, "secret": false, 
"description": "For the timer type: start starts a timer and stores it on the 
exchange, and stop stops the timer that start stored on the same exchange and 
records the elapsed time. If no actio [...]
+    "decrement": { "index": 3, "kind": "parameter", "displayName": 
"Decrement", "group": "producer", "label": "", "required": false, "type": 
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": 
false, "secret": false, "description": "For the counter type: the amount to 
subtract from the counter, used only when no increment is set by the option or 
the CamelMetricsCounterIncrement header. The CamelMetricsCounterDecrement 
header replaces this option." },
+    "increment": { "index": 4, "kind": "parameter", "displayName": 
"Increment", "group": "producer", "label": "", "required": false, "type": 
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": 
false, "secret": false, "description": "For the counter type: the amount to add 
to the counter. It wins over decrement, and if neither is set the counter is 
incremented by one. The CamelMetricsCounterIncrement header replaces this 
option." },
+    "mark": { "index": 5, "kind": "parameter", "displayName": "Mark", "group": 
"producer", "label": "", "required": false, "type": "integer", "javaType": 
"java.lang.Long", "deprecated": false, "autowired": false, "secret": false, 
"description": "For the meter type: the number of events to mark on the meter. 
If not set, the meter marks one event. The CamelMetricsMeterMark header 
replaces this option." },
+    "subject": { "index": 6, "kind": "parameter", "displayName": "Subject", 
"group": "producer", "label": "", "required": false, "type": "object", 
"javaType": "java.lang.Object", "deprecated": false, "autowired": false, 
"secret": false, "description": "For the gauge type: the object that the gauge 
returns as its value, for example a bean reference. The producer registers the 
gauge with it when the producer starts, and the CamelMetricsGaugeSubject header 
replaces the value of the gauge." },
+    "value": { "index": 7, "kind": "parameter", "displayName": "Value", 
"group": "producer", "label": "", "required": false, "type": "integer", 
"javaType": "java.lang.Long", "deprecated": false, "autowired": false, 
"secret": false, "description": "For the histogram type: the value to add to 
the histogram. If not set, the producer logs a warning and does not update the 
histogram. The CamelMetricsHistogramValue header replaces this option." },
     "lazyStartProducer": { "index": 8, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produc [...]
   }
 }
diff --git a/components/camel-metrics/src/main/docs/metrics-component.adoc 
b/components/camel-metrics/src/main/docs/metrics-component.adoc
index e84bfe571880..b9ff412e49c3 100644
--- a/components/camel-metrics/src/main/docs/metrics-component.adoc
+++ b/components/camel-metrics/src/main/docs/metrics-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Metrics
 :shortname: metrics
 :artifactid: camel-metrics
-:description: Collect various metrics directly from Camel routes using the 
DropWizard metrics library.
+:description: Update counters, gauges, histograms, meters and timers of a 
Dropwizard Metrics registry from Camel routes.
 :since: 2.14
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsComponent.java
 
b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsComponent.java
index 477f049ce5a0..c4aac6b3f941 100644
--- 
a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsComponent.java
+++ 
b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsComponent.java
@@ -45,7 +45,10 @@ public class MetricsComponent extends DefaultComponent {
 
     private static final Logger LOG = 
LoggerFactory.getLogger(MetricsComponent.class);
 
-    @Metadata(label = "advanced")
+    @Metadata(label = "advanced",
+              description = "The Dropwizard MetricRegistry that holds the 
metrics. If not set, the component uses the bean"
+                            + " named metricRegistry, or the only 
MetricRegistry bean, of the Camel registry, and else creates"
+                            + " a registry whose Slf4jReporter logs the 
metrics at DEBUG level every 60 seconds.")
     private MetricRegistry metricRegistry;
 
     public MetricsComponent() {
@@ -66,9 +69,6 @@ public class MetricsComponent extends DefaultComponent {
         return metricRegistry;
     }
 
-    /**
-     * To use a custom configured MetricRegistry.
-     */
     public void setMetricRegistry(MetricRegistry metricRegistry) {
         this.metricRegistry = metricRegistry;
     }
diff --git 
a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsConstants.java
 
b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsConstants.java
index ff863143eaa4..7f54f64e902e 100644
--- 
a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsConstants.java
+++ 
b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsConstants.java
@@ -21,19 +21,28 @@ import org.apache.camel.spi.Metadata;
 public final class MetricsConstants {
 
     public static final String HEADER_PREFIX = "CamelMetrics";
-    @Metadata(description = "Override timer action in URI", javaType = 
"org.apache.camel.component.metrics.MetricsTimerAction")
+    @Metadata(description = "The timer action, start or stop, for the timer 
type. It replaces the action option.",
+              javaType = 
"org.apache.camel.component.metrics.MetricsTimerAction")
     public static final String HEADER_TIMER_ACTION = HEADER_PREFIX + 
"TimerAction";
-    @Metadata(description = "Override mark value in URI", javaType = "long")
+    @Metadata(description = "The number of events to mark on the meter, for 
the meter type. It replaces the mark option.",
+              javaType = "long")
     public static final String HEADER_METER_MARK = HEADER_PREFIX + "MeterMark";
-    @Metadata(description = "Override histogram value in URI", javaType = 
"long")
+    @Metadata(description = "The value to add to the histogram, for the 
histogram type. It replaces the value option.",
+              javaType = "long")
     public static final String HEADER_HISTOGRAM_VALUE = HEADER_PREFIX + 
"HistogramValue";
-    @Metadata(description = "Override decrement value in URI", javaType = 
"long")
+    @Metadata(description = "The amount to subtract from the counter, for the 
counter type. It replaces the decrement"
+                            + " option, and is used only when no increment is 
set.",
+              javaType = "long")
     public static final String HEADER_COUNTER_DECREMENT = HEADER_PREFIX + 
"CounterDecrement";
-    @Metadata(description = "Override increment value in URI", javaType = 
"long")
+    @Metadata(description = "The amount to add to the counter, for the counter 
type. It replaces the increment option.",
+              javaType = "long")
     public static final String HEADER_COUNTER_INCREMENT = HEADER_PREFIX + 
"CounterIncrement";
-    @Metadata(description = "Override subject value in URI", javaType = 
"Object")
+    @Metadata(description = "The object that the gauge returns as its value, 
for the gauge type. It replaces the value of"
+                            + " the gauge, or registers the gauge if it does 
not exist yet.",
+              javaType = "Object")
     public static final String HEADER_GAUGE_SUBJECT = HEADER_PREFIX + 
"GaugeSubject";
-    @Metadata(description = "Override name value in URI", javaType = "String")
+    @Metadata(description = "The name of the metric. If not empty, it replaces 
the metricsName of the endpoint.",
+              javaType = "String")
     public static final String HEADER_METRIC_NAME = HEADER_PREFIX + "Name";
 
     private MetricsConstants() {
diff --git 
a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsEndpoint.java
 
b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsEndpoint.java
index f83b3b799365..6782d6a281a9 100644
--- 
a/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsEndpoint.java
+++ 
b/components/camel-metrics/src/main/java/org/apache/camel/component/metrics/MetricsEndpoint.java
@@ -33,7 +33,7 @@ import org.apache.camel.spi.UriPath;
 import org.apache.camel.support.DefaultEndpoint;
 
 /**
- * Collect various metrics directly from Camel routes using the DropWizard 
metrics library.
+ * Update counters, gauges, histograms, meters and timers of a Dropwizard 
Metrics registry from Camel routes.
  */
 @UriEndpoint(firstVersion = "2.14.0", scheme = "metrics", title = "Metrics", 
syntax = "metrics:metricsType:metricsName",
              remote = false, internal = true, producerOnly = true, category = 
{ Category.MONITORING },
@@ -46,23 +46,36 @@ public class MetricsEndpoint extends DefaultEndpoint {
 
     protected final MetricRegistry registry;
 
-    @UriPath(description = "Type of metrics")
+    @UriPath(description = "The type of the metric. If the URI gives only a 
name, as in metrics:myName, the type is meter.")
     @Metadata(required = true)
     protected final MetricsType metricsType;
-    @UriPath(description = "Name of metrics")
+    @UriPath(description = "The name of the metric in the MetricRegistry. A 
CamelMetricsName header that is not empty"
+                           + " replaces this option.")
     @Metadata(required = true)
     protected final String metricsName;
-    @UriParam(description = "Action when using timer type")
+    @UriParam(description = "For the timer type: start starts a timer and 
stores it on the exchange, and stop stops the timer"
+                            + " that start stored on the same exchange and 
records the elapsed time. If no action is set,"
+                            + " the producer logs a warning and does nothing. 
The CamelMetricsTimerAction header replaces"
+                            + " this option.")
     private MetricsTimerAction action;
-    @UriParam(description = "Mark when using meter type")
+    @UriParam(description = "For the meter type: the number of events to mark 
on the meter. If not set, the meter marks one"
+                            + " event. The CamelMetricsMeterMark header 
replaces this option.")
     private Long mark;
-    @UriParam(description = "Value value when using histogram type")
+    @UriParam(description = "For the histogram type: the value to add to the 
histogram. If not set, the producer logs a"
+                            + " warning and does not update the histogram. The 
CamelMetricsHistogramValue header replaces"
+                            + " this option.")
     private Long value;
-    @UriParam(description = "Increment value when using counter type")
+    @UriParam(description = "For the counter type: the amount to add to the 
counter. It wins over decrement, and if neither is"
+                            + " set the counter is incremented by one. The 
CamelMetricsCounterIncrement header replaces this"
+                            + " option.")
     private Long increment;
-    @UriParam(description = "Decrement value when using counter type")
+    @UriParam(description = "For the counter type: the amount to subtract from 
the counter, used only when no increment is set"
+                            + " by the option or the 
CamelMetricsCounterIncrement header. The CamelMetricsCounterDecrement"
+                            + " header replaces this option.")
     private Long decrement;
-    @UriParam(description = "Subject value when using gauge type")
+    @UriParam(description = "For the gauge type: the object that the gauge 
returns as its value, for example a bean reference."
+                            + " The producer registers the gauge with it when 
the producer starts, and the"
+                            + " CamelMetricsGaugeSubject header replaces the 
value of the gauge.")
     private Object subject;
 
     public MetricsEndpoint(String uri, Component component, MetricRegistry 
registry, MetricsType metricsType,
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index da3cb6712d89..9a9c62985d51 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -3633,8 +3633,8 @@ public interface ComponentsBuilderFactory {
     }
     /**
      * Metrics (camel-metrics)
-     * Collect various metrics directly from Camel routes using the DropWizard
-     * metrics library.
+     * Update counters, gauges, histograms, meters and timers of a Dropwizard
+     * Metrics registry from Camel routes.
      * 
      * Category: monitoring
      * Since: 2.14
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MetricsComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MetricsComponentBuilderFactory.java
index f923e6e7873f..48938b27cc3d 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MetricsComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/MetricsComponentBuilderFactory.java
@@ -24,8 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder;
 import org.apache.camel.component.metrics.MetricsComponent;
 
 /**
- * Collect various metrics directly from Camel routes using the DropWizard
- * metrics library.
+ * Update counters, gauges, histograms, meters and timers of a Dropwizard
+ * Metrics registry from Camel routes.
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -34,8 +34,8 @@ public interface MetricsComponentBuilderFactory {
 
     /**
      * Metrics (camel-metrics)
-     * Collect various metrics directly from Camel routes using the DropWizard
-     * metrics library.
+     * Update counters, gauges, histograms, meters and timers of a Dropwizard
+     * Metrics registry from Camel routes.
      * 
      * Category: monitoring
      * Since: 2.14
@@ -100,7 +100,11 @@ public interface MetricsComponentBuilderFactory {
         }
     
         /**
-         * To use a custom configured MetricRegistry.
+         * The Dropwizard MetricRegistry that holds the metrics. If not set, 
the
+         * component uses the bean named metricRegistry, or the only
+         * MetricRegistry bean, of the Camel registry, and else creates a
+         * registry whose Slf4jReporter logs the metrics at DEBUG level every 
60
+         * seconds.
          * 
          * The option is a:
          * &lt;code&gt;com.codahale.metrics.MetricRegistry&lt;/code&gt; type.
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index 1997e84d68d2..c05b1fe09680 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -2891,8 +2891,8 @@ public class EndpointHeaderBuilders {
     }
     /**
      * Metrics (camel-metrics)
-     * Collect various metrics directly from Camel routes using the DropWizard
-     * metrics library.
+     * Update counters, gauges, histograms, meters and timers of a Dropwizard
+     * Metrics registry from Camel routes.
      * 
      * Category: monitoring
      * Since: 2.14
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 776a75ab041d..73dfa6bbf7e6 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -12052,8 +12052,8 @@ public class StaticEndpointBuilders {
     }
     /**
      * Metrics (camel-metrics)
-     * Collect various metrics directly from Camel routes using the DropWizard
-     * metrics library.
+     * Update counters, gauges, histograms, meters and timers of a Dropwizard
+     * Metrics registry from Camel routes.
      * 
      * Category: monitoring
      * Since: 2.14
@@ -12062,12 +12062,14 @@ public class StaticEndpointBuilders {
      * Syntax: <code>metrics:metricsType:metricsName</code>
      * 
      * Path parameter: metricsType (required)
-     * Type of metrics
+     * The type of the metric. If the URI gives only a name, as in
+     * metrics:myName, the type is meter.
      * There are 5 enums and the value can be one of: gauge, counter, 
histogram,
      * meter, timer
      * 
      * Path parameter: metricsName (required)
-     * Name of metrics
+     * The name of the metric in the MetricRegistry. A CamelMetricsName header
+     * that is not empty replaces this option.
      * 
      * @param path metricsType:metricsName
      * @return the dsl builder
@@ -12077,8 +12079,8 @@ public class StaticEndpointBuilders {
     }
     /**
      * Metrics (camel-metrics)
-     * Collect various metrics directly from Camel routes using the DropWizard
-     * metrics library.
+     * Update counters, gauges, histograms, meters and timers of a Dropwizard
+     * Metrics registry from Camel routes.
      * 
      * Category: monitoring
      * Since: 2.14
@@ -12087,12 +12089,14 @@ public class StaticEndpointBuilders {
      * Syntax: <code>metrics:metricsType:metricsName</code>
      * 
      * Path parameter: metricsType (required)
-     * Type of metrics
+     * The type of the metric. If the URI gives only a name, as in
+     * metrics:myName, the type is meter.
      * There are 5 enums and the value can be one of: gauge, counter, 
histogram,
      * meter, timer
      * 
      * Path parameter: metricsName (required)
-     * Name of metrics
+     * The name of the metric in the MetricRegistry. A CamelMetricsName header
+     * that is not empty replaces this option.
      * 
      * @param componentName to use a custom component name for the endpoint
      * instead of the default name
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MetricsEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MetricsEndpointBuilderFactory.java
index 3b66c4bc4370..5c25c3fd068a 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MetricsEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/MetricsEndpointBuilderFactory.java
@@ -27,8 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder;
 import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
 
 /**
- * Collect various metrics directly from Camel routes using the DropWizard
- * metrics library.
+ * Update counters, gauges, histograms, meters and timers of a Dropwizard
+ * Metrics registry from Camel routes.
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -46,7 +46,11 @@ public interface MetricsEndpointBuilderFactory {
         }
 
         /**
-         * Action when using timer type.
+         * For the timer type: start starts a timer and stores it on the
+         * exchange, and stop stops the timer that start stored on the same
+         * exchange and records the elapsed time. If no action is set, the
+         * producer logs a warning and does nothing. The 
CamelMetricsTimerAction
+         * header replaces this option.
          * 
          * The option is a:
          * <code>org.apache.camel.component.metrics.MetricsTimerAction</code>
@@ -62,7 +66,11 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Action when using timer type.
+         * For the timer type: start starts a timer and stores it on the
+         * exchange, and stop stops the timer that start stored on the same
+         * exchange and records the elapsed time. If no action is set, the
+         * producer logs a warning and does nothing. The 
CamelMetricsTimerAction
+         * header replaces this option.
          * 
          * The option will be converted to a
          * <code>org.apache.camel.component.metrics.MetricsTimerAction</code>
@@ -78,7 +86,10 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Decrement value when using counter type.
+         * For the counter type: the amount to subtract from the counter, used
+         * only when no increment is set by the option or the
+         * CamelMetricsCounterIncrement header. The 
CamelMetricsCounterDecrement
+         * header replaces this option.
          * 
          * The option is a: <code>java.lang.Long</code> type.
          * 
@@ -92,7 +103,10 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Decrement value when using counter type.
+         * For the counter type: the amount to subtract from the counter, used
+         * only when no increment is set by the option or the
+         * CamelMetricsCounterIncrement header. The 
CamelMetricsCounterDecrement
+         * header replaces this option.
          * 
          * The option will be converted to a <code>java.lang.Long</code> type.
          * 
@@ -106,7 +120,9 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Increment value when using counter type.
+         * For the counter type: the amount to add to the counter. It wins over
+         * decrement, and if neither is set the counter is incremented by one.
+         * The CamelMetricsCounterIncrement header replaces this option.
          * 
          * The option is a: <code>java.lang.Long</code> type.
          * 
@@ -120,7 +136,9 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Increment value when using counter type.
+         * For the counter type: the amount to add to the counter. It wins over
+         * decrement, and if neither is set the counter is incremented by one.
+         * The CamelMetricsCounterIncrement header replaces this option.
          * 
          * The option will be converted to a <code>java.lang.Long</code> type.
          * 
@@ -134,7 +152,9 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Mark when using meter type.
+         * For the meter type: the number of events to mark on the meter. If 
not
+         * set, the meter marks one event. The CamelMetricsMeterMark header
+         * replaces this option.
          * 
          * The option is a: <code>java.lang.Long</code> type.
          * 
@@ -148,7 +168,9 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Mark when using meter type.
+         * For the meter type: the number of events to mark on the meter. If 
not
+         * set, the meter marks one event. The CamelMetricsMeterMark header
+         * replaces this option.
          * 
          * The option will be converted to a <code>java.lang.Long</code> type.
          * 
@@ -162,7 +184,10 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Subject value when using gauge type.
+         * For the gauge type: the object that the gauge returns as its value,
+         * for example a bean reference. The producer registers the gauge with
+         * it when the producer starts, and the CamelMetricsGaugeSubject header
+         * replaces the value of the gauge.
          * 
          * The option is a: <code>java.lang.Object</code> type.
          * 
@@ -176,7 +201,10 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Subject value when using gauge type.
+         * For the gauge type: the object that the gauge returns as its value,
+         * for example a bean reference. The producer registers the gauge with
+         * it when the producer starts, and the CamelMetricsGaugeSubject header
+         * replaces the value of the gauge.
          * 
          * The option will be converted to a <code>java.lang.Object</code> 
type.
          * 
@@ -190,7 +218,9 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Value value when using histogram type.
+         * For the histogram type: the value to add to the histogram. If not
+         * set, the producer logs a warning and does not update the histogram.
+         * The CamelMetricsHistogramValue header replaces this option.
          * 
          * The option is a: <code>java.lang.Long</code> type.
          * 
@@ -204,7 +234,9 @@ public interface MetricsEndpointBuilderFactory {
             return this;
         }
         /**
-         * Value value when using histogram type.
+         * For the histogram type: the value to add to the histogram. If not
+         * set, the producer logs a warning and does not update the histogram.
+         * The CamelMetricsHistogramValue header replaces this option.
          * 
          * The option will be converted to a <code>java.lang.Long</code> type.
          * 
@@ -280,8 +312,8 @@ public interface MetricsEndpointBuilderFactory {
     public interface MetricsBuilders {
         /**
          * Metrics (camel-metrics)
-         * Collect various metrics directly from Camel routes using the
-         * DropWizard metrics library.
+         * Update counters, gauges, histograms, meters and timers of a
+         * Dropwizard Metrics registry from Camel routes.
          * 
          * Category: monitoring
          * Since: 2.14
@@ -294,8 +326,8 @@ public interface MetricsEndpointBuilderFactory {
         }
         /**
          * Metrics (camel-metrics)
-         * Collect various metrics directly from Camel routes using the
-         * DropWizard metrics library.
+         * Update counters, gauges, histograms, meters and timers of a
+         * Dropwizard Metrics registry from Camel routes.
          * 
          * Category: monitoring
          * Since: 2.14
@@ -304,12 +336,14 @@ public interface MetricsEndpointBuilderFactory {
          * Syntax: <code>metrics:metricsType:metricsName</code>
          * 
          * Path parameter: metricsType (required)
-         * Type of metrics
+         * The type of the metric. If the URI gives only a name, as in
+         * metrics:myName, the type is meter.
          * There are 5 enums and the value can be one of: gauge, counter,
          * histogram, meter, timer
          * 
          * Path parameter: metricsName (required)
-         * Name of metrics
+         * The name of the metric in the MetricRegistry. A CamelMetricsName
+         * header that is not empty replaces this option.
          * 
          * @param path metricsType:metricsName
          * @return the dsl builder
@@ -319,8 +353,8 @@ public interface MetricsEndpointBuilderFactory {
         }
         /**
          * Metrics (camel-metrics)
-         * Collect various metrics directly from Camel routes using the
-         * DropWizard metrics library.
+         * Update counters, gauges, histograms, meters and timers of a
+         * Dropwizard Metrics registry from Camel routes.
          * 
          * Category: monitoring
          * Since: 2.14
@@ -329,12 +363,14 @@ public interface MetricsEndpointBuilderFactory {
          * Syntax: <code>metrics:metricsType:metricsName</code>
          * 
          * Path parameter: metricsType (required)
-         * Type of metrics
+         * The type of the metric. If the URI gives only a name, as in
+         * metrics:myName, the type is meter.
          * There are 5 enums and the value can be one of: gauge, counter,
          * histogram, meter, timer
          * 
          * Path parameter: metricsName (required)
-         * Name of metrics
+         * The name of the metric in the MetricRegistry. A CamelMetricsName
+         * header that is not empty replaces this option.
          * 
          * @param componentName to use a custom component name for the endpoint
          * instead of the default name
@@ -357,7 +393,8 @@ public interface MetricsEndpointBuilderFactory {
         public static final MetricsHeaderNameBuilder INSTANCE = new 
MetricsHeaderNameBuilder();
 
         /**
-         * Override timer action in URI.
+         * The timer action, start or stop, for the timer type. It replaces the
+         * action option.
          * 
          * The option is a: {@code
          * org.apache.camel.component.metrics.MetricsTimerAction} type.
@@ -370,7 +407,8 @@ public interface MetricsEndpointBuilderFactory {
             return "CamelMetricsTimerAction";
         }
         /**
-         * Override mark value in URI.
+         * The number of events to mark on the meter, for the meter type. It
+         * replaces the mark option.
          * 
          * The option is a: {@code long} type.
          * 
@@ -382,7 +420,8 @@ public interface MetricsEndpointBuilderFactory {
             return "CamelMetricsMeterMark";
         }
         /**
-         * Override histogram value in URI.
+         * The value to add to the histogram, for the histogram type. It
+         * replaces the value option.
          * 
          * The option is a: {@code long} type.
          * 
@@ -394,7 +433,9 @@ public interface MetricsEndpointBuilderFactory {
             return "CamelMetricsHistogramValue";
         }
         /**
-         * Override decrement value in URI.
+         * The amount to subtract from the counter, for the counter type. It
+         * replaces the decrement option, and is used only when no increment is
+         * set.
          * 
          * The option is a: {@code long} type.
          * 
@@ -406,7 +447,8 @@ public interface MetricsEndpointBuilderFactory {
             return "CamelMetricsCounterDecrement";
         }
         /**
-         * Override increment value in URI.
+         * The amount to add to the counter, for the counter type. It replaces
+         * the increment option.
          * 
          * The option is a: {@code long} type.
          * 
@@ -418,7 +460,9 @@ public interface MetricsEndpointBuilderFactory {
             return "CamelMetricsCounterIncrement";
         }
         /**
-         * Override subject value in URI.
+         * The object that the gauge returns as its value, for the gauge type.
+         * It replaces the value of the gauge, or registers the gauge if it 
does
+         * not exist yet.
          * 
          * The option is a: {@code Object} type.
          * 
@@ -430,7 +474,8 @@ public interface MetricsEndpointBuilderFactory {
             return "CamelMetricsGaugeSubject";
         }
         /**
-         * Override name value in URI.
+         * The name of the metric. If not empty, it replaces the metricsName of
+         * the endpoint.
          * 
          * The option is a: {@code String} type.
          * 
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index 8ebe413acbbd..03342390c2a4 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -267,7 +267,7 @@ or removes its row.
 | camel-mail | imap, imaps, pop3, pop3s, smtp, smtps |  |
 | camel-mapstruct | mapstruct |  |
 | camel-master | master |  |
-| camel-metrics | metrics |  |
+| camel-metrics | metrics | yes |
 | camel-micrometer | micrometer |  |
 | camel-milo | milo-browse, milo-client, milo-server |  |
 | camel-milvus | milvus |  |

Reply via email to