To collect various metrics directly from Camel routes using the DropWizard metrics library.
Name | Kind | Group | Required | Default | Type | Enum | Description |
---|---|---|---|---|---|---|---|
metricsType | path | producer | true | org.apache.camel.component.metrics.MetricsType | GAUGE COUNTER HISTOGRAM METER TIMER |
Type of metrics | |
metricsName | path | producer | true | java.lang.String | Name of metrics | ||
bridgeErrorHandler | parameter | consumer | boolean | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exceptionHandler | parameter | consumer (advanced) | org.apache.camel.spi.ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exchangePattern | parameter | consumer (advanced) | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the exchange pattern when the consumer creates an exchange. | ||
action | parameter | producer | org.apache.camel.component.metrics.MetricsTimerAction | start stop |
Action when using timer type | ||
decrement | parameter | producer | java.lang.Long | Decrement value when using counter type | |||
increment | parameter | producer | java.lang.Long | Increment value when using counter type | |||
mark | parameter | producer | java.lang.Long | Mark when using meter type | |||
value | parameter | producer | java.lang.Long | Value value when using histogram type | |||
synchronous | parameter | advanced | false | boolean | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |