脚肿腿肿是什么原因引起的| 表哥的儿子叫我什么| kkp什么意思| 观音成道日是什么意思| 什么情况需要打狂犬疫苗| omega是什么意思| 腰椎退行性变什么意思| est什么意思| 颈椎病看什么科最好| 脑溢血是什么原因引起的| 身上长癣是什么原因引起的| 团长转业到地方是什么职务| 痛风有什么不能吃| 一孕傻三年是什么意思| 打耳洞什么季节最好| 一生无虞是什么意思| 欢喜冤家是什么意思| 花对什么| 多囊卵巢综合征吃什么药| 黄体破裂是什么意思| 外婆菜是什么菜| 什么血型最多| 维生素b2是什么颜色| 麻痹是什么意思| 做完人流需要注意什么| 什么是医学检验技术| 先天是什么意思| vaude是什么品牌| 牵连是什么意思| 芜湖有什么特产| 纳氏囊肿是什么意思| 89岁属什么生肖| 奴仆宫是什么意思| 世界上最深的湖泊是什么| 马太效应什么意思| 什么枯石烂| 梦到和男朋友分手是什么征兆| 985大学是什么意思| 什么是年金| 在什么后面| 软骨病是什么病| 汕头有什么好玩的地方| 胃字出头念什么| 嗓子疼喝什么| 参军意愿选什么比较好| 高招是什么意思| 痉挛吃什么药效果好| 红枣为什么要去核煮| 吃什么补气血| 嘴巴下面长痘痘是什么原因| 为什么每次同房后都会尿路感染| 下巴下面是什么部位| 三本是什么| 疱疹挂什么科| 维生素b有什么用| 一月来两次月经是什么原因| 第一次见女方家长带什么礼物好| 金钱骨是什么部位| 猫尿床是因为什么原因| 下巴反复长痘痘是什么原因| 正色是什么意思| 什么药降肌酐| 生猴子是什么意思| 的确良是什么面料| 什么牌子的燕麦片最好| 闭口粉刺是什么原因引起的| 月经期同房有什么危害| 水瓶座是什么星象| 39属什么生肖| 视觉感受器是什么| 痰湿中阻吃什么中成药| 尖嘴猴腮什么意思| 调月经吃什么药好| 直肠给药对小孩身体有什么影响| 老铁是什么意思| 皮肤长癣是什么原因| 阳历八月份是什么星座| 感冒吃什么恢复快| 疱疹是什么| 为什么有钱人不去植发| 什么的脸庞| 指甲弯曲是什么原因| 脸红是什么原因| 为什么手术服是绿色的| 成人发烧吃什么退烧药| 红色连衣裙配什么鞋子好看| mri是什么检查| 2pcs是什么意思| 处女座是什么星座| 资金流入股价下跌为什么| 三七粉主治什么病| 为什么水不能燃烧| 水潴留是什么意思| 肚子特别疼是什么原因| 安踏属于什么档次| w是什么意思| 兼性厌氧是什么意思| 吃什么食物补铁| 网络诈骗打什么电话| 利水渗湿是什么意思| 小饭桌是什么意思| 必修是什么意思| 眼睛肿是什么原因引起的| 当归有什么作用| 太阳花是什么花| 口苦是什么原因| 茯苓有什么功效| 八败是什么意思| 澎湃的什么| 1998年属什么生肖| 乳腺4a类是什么意思| 为什么会长荨麻疹| 传统是什么意思| pd是什么意思| 脚底发麻是什么病的前兆| 丑是什么意思| 白色舌苔厚是什么原因| 什么人适合戴玉| 长乘宽乘高算的是什么| 康宽杀虫剂能杀什么虫| 捻子泡酒有什么功效| 柔和是什么意思| 93岁属什么生肖| 舌头变黑是什么原因| 天秤座男生喜欢什么样的女生| 侮辱什么意思| 误食干燥剂有什么危害| 良民是什么意思| 夜晚睡不着觉什么原因| 巴黎世家是什么| 喝酒不能吃什么药| gd是什么元素| 乌龟死了有什么预兆| 转网是什么意思| 总胆红素偏高什么意思| 农历4月是什么星座| 南瓜和什么相克| 凯撒沙拉酱是什么口味| 什么情况下要打破伤风针| 木耳不能和什么一起吃| 小猫吃什么东西| 狗狗狂犬疫苗什么时候打| 11月25日什么星座| pdr是什么意思| 情人的定义是什么| 产生幻觉是什么原因| 什么是胶原蛋白| 付之一炬什么意思| 什么鸟会说话| 后脑勺胀痛什么原因| 淋巴结肿大是什么原因| cyl是什么意思| 什么原因引起甲亢| 逆钟向转位什么意思| 剖腹产可以吃什么| 小孩风寒感冒吃什么药| 43岁属什么| 盖世英雄是什么意思| 满载而归的载是什么意思| 腰间盘突出是什么原因引起的| 裸睡有什么好处| 忌口不能吃什么| 1998年属虎是什么命| 茭白是什么植物| 男生第一次什么感觉| 看肺挂什么科| 张家界为什么叫张家界| other什么意思| 我好想你是什么歌| 左眼跳什么预兆| 孩子睡觉咬牙齿是什么原因引起的| ny什么牌子| 笑靥如花是什么意思| 指甲紫色是什么原因| 摄取是什么意思| 胃酸的主要成分是什么| 84年属鼠是什么命| 奇异果和猕猴桃有什么区别| 老人喝什么牛奶好| 儿童热感冒吃什么药| 低分化腺癌是什么意思| 恒牙是什么牙| xmm是什么意思| 龟苓膏有什么作用| 吃什么壮阳补肾| 九月十号是什么星座| 什么肉不能吃| 赞聊是什么意思| 12月20日是什么星座| 耳机降噪是什么意思| 男人结扎有什么好处| 04年出生属什么| 脑梗是什么引起的| 黄鼻涕是什么原因| 加拿大的国宝是什么动物| 1998年什么命| 口是心非是什么意思| 坎坷人生是什么生肖| 洗澡用什么香皂好| 回声增强什么意思| 什么钱最值钱| 喝红牛有什么好处和坏处| 什么是炎症| 乙肝五项第二项阳性是什么意思| 洗澡有什么好处| 淀粉酶高是什么原因| 奕五行属什么| 长期腹泻是什么病| 中风吃什么药好| 15点是什么时辰| 子宫钙化灶是什么意思| 3月3号是什么星座| 人参果总皂苷是什么| 金牛座和什么座最配| 肝气犯胃吃什么中成药| 昵称什么意思| 六月二号什么星座| 月经量少要吃什么调理| 喝牛奶不能和什么一起吃| wz是什么意思| 胃火旺盛吃什么药| 看金鱼是什么梗| 鸡子是什么| 3月19日什么星座| 榴莲有什么功效| 帕斯是什么意思| 姓薄的读音是什么| 上环什么时候去最合适| gree是什么牌子| 南浦大桥什么时候建成| 一节黑一节白是什么蛇| 犹太人割礼是什么意思| 大排畸主要检查什么| 文化大革命什么时候| 焖面用什么面条| 肠炎吃什么药效果最好| 看灰指甲去医院挂什么科| 8月8日什么星座| 一九八四年属什么生肖| 阳是什么意思| cas是什么意思| 肥猪拱门是什么生肖| 丁香泡水喝有什么功效和作用| 紫薇什么意思| 绿色搭配什么颜色好看| 怀孕做梦梦到蛇是什么意思| 镭是什么| 2月30日是什么星座| 收官什么意思| 晴雨表是什么意思| 竖起中指是什么意思| quilt什么意思| 吃什么东西减肥最快| 大黄泡水喝有什么功效| 嘴馋是什么意思| 属马的生什么属相的宝宝好| 一个月一个太念什么| 梦到考试是什么意思| 甲方乙方是什么意思| 火烈鸟为什么是红色的| 八百里加急是什么意思| 女性尿路感染是什么原因造成的| 湿度大对人体有什么影响| 下身有异味用什么药| 百度

海南2017年普通高校招生录取时间安排

百度 潇湘晨报记者黎棠

Since Camel 2.14

Only producer is supported

The Metrics component allows collecting various metrics directly from Camel routes. Supported metric types are counter, histogram, meter, timer and gauge. Metrics provides a simple way to measure the behaviour of applications. The configurable reporting backend enables different integration options for collecting and visualizing statistics. The component also provides a MetricsRoutePolicyFactory which allows exposing route statistics using Dropwizard Metrics, see bottom of page for details.

Maven users will need to add the following dependency to their pom.xml for this component:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-metrics</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

URI format

metrics:[ meter | counter | histogram | timer | gauge ]:metricname[?options]

Configuring Options

Camel components are configured on two separate levels:

  • component level

  • endpoint level

Configuring Component Options

At the component level, you set general and shared configurations that are, then, inherited by the endpoints. It is the highest configuration level.

For example, a component may have security settings, credentials for authentication, urls for network connection and so forth.

Some components only have a few options, and others may have many. Because components typically have pre-configured defaults that are commonly used, then you may often only need to configure a few options on a component; or none at all.

You can configure components using:

  • the Component DSL.

  • in a configuration file (application.properties, *.yaml files, etc).

  • directly in the Java code.

Configuring Endpoint Options

You usually spend more time setting up endpoints because they have many options. These options help you customize what you want the endpoint to do. The options are also categorized into whether the endpoint is used as a consumer (from), as a producer (to), or both.

Configuring endpoints is most often done directly in the endpoint URI as path and query parameters. You can also use the Endpoint DSL and DataFormat DSL as a type safe way of configuring endpoints and data formats in Java.

A good practice when configuring options is to use Property Placeholders.

Property placeholders provide a few benefits:

  • They help prevent using hardcoded urls, port numbers, sensitive information, and other settings.

  • They allow externalizing the configuration from the code.

  • They help the code to become more flexible and reusable.

The following two sections list all the options, firstly for the component followed by the endpoint.

Component Options

The Metrics component supports 3 options, which are listed below.

Name Description Default Type

lazyStartProducer (producer)

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 during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.

false

boolean

autowiredEnabled (advanced)

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 type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

boolean

metricRegistry (advanced)

To use a custom configured MetricRegistry.

MetricRegistry

Endpoint Options

The Metrics endpoint is configured using URI syntax:

metrics:metricsType:metricsName

With the following path and query parameters:

Path Parameters (2 parameters)

Name Description Default Type

metricsType (producer)

Required Type of metrics.

Enum values:

  • gauge

  • counter

  • histogram

  • meter

  • timer

MetricsType

metricsName (producer)

Required Name of metrics.

String

Query Parameters (7 parameters)

Name Description Default Type

action (producer)

Action when using timer type.

Enum values:

  • start

  • stop

MetricsTimerAction

decrement (producer)

Decrement value when using counter type.

Long

increment (producer)

Increment value when using counter type.

Long

mark (producer)

Mark when using meter type.

Long

subject (producer)

Subject value when using gauge type.

Object

value (producer)

Value value when using histogram type.

Long

lazyStartProducer (producer (advanced))

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 during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.

false

boolean

Message Headers

The Metrics component supports 7 message header(s), which is/are listed below:

Name Description Default Type

CamelMetricsTimerAction (producer)

Constant: HEADER_TIMER_ACTION

Override timer action in URI.

Enum values:

  • start

  • stop

MetricsTimerAction

CamelMetricsMeterMark (producer)

Constant: HEADER_METER_MARK

Override mark value in URI.

long

CamelMetricsHistogramValue (producer)

Constant: HEADER_HISTOGRAM_VALUE

Override histogram value in URI.

long

CamelMetricsCounterDecrement (producer)

Constant: HEADER_COUNTER_DECREMENT

Override decrement value in URI.

long

CamelMetricsCounterIncrement (producer)

Constant: HEADER_COUNTER_INCREMENT

Override increment value in URI.

long

CamelMetricsGaugeSubject (producer)

Constant: HEADER_GAUGE_SUBJECT

Override subject value in URI.

Object

CamelMetricsName (producer)

Constant: HEADER_METRIC_NAME

Override name value in URI.

String

Metric Registry

Camel Metrics component uses by default a MetricRegistry instance with a Slf4jReporter that has a 60-second reporting interval. This default registry can be replaced with a custom one by providing a MetricRegistry bean. If multiple MetricRegistry beans exist in the application, the one with name metricRegistry is used.

For example:

  • Java (Spring)

  • Java (CDI)

@Configuration
public static class MyConfig extends SingleRouteCamelConfiguration {

    @Bean
    @Override
    public RouteBuilder route() {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                // define Camel routes here
            }
        };
    }

    @Bean(name = MetricsComponent.METRIC_REGISTRY_NAME)
    public MetricRegistry getMetricRegistry() {
        MetricRegistry registry = ...;
        return registry;
    }
}
class MyBean extends RouteBuilder {

    @Override
    public void configure() {
      from("...")
          // Register the 'my-meter' meter in the MetricRegistry below
          .to("metrics:meter:my-meter");
    }

    @Produces
    // If multiple MetricRegistry beans
    // @Named(MetricsComponent.METRIC_REGISTRY_NAME)
    MetricRegistry registry() {
        MetricRegistry registry = new MetricRegistry();
        // ...
        return registry;
    }
}

Usage

Each metric has type and name. Supported types are counter, histogram, meter, timer and gauge. Metric name is simple string. If a metric type is not provided, then type meter is used by default.

Headers

Metric name defined in URI can be overridden by using header with name CamelMetricsName.

For example

from("direct:in")
    .setHeader(MetricsConstants.HEADER_METRIC_NAME, constant("new.name"))
    .to("metrics:counter:name.not.used")
    .to("direct:out");

will update counter with name new.name instead of name.not.used.

All Metrics specific headers are removed from the message once Metrics endpoint finishes processing of exchange. While processing exchange Metrics endpoint will catch all exceptions and write log entry using level warn.

Metrics type counter

metrics:counter:metricname[?options]

Options

Name Default Description

increment

-

Long value to add to the counter

decrement

-

Long value to subtract from the counter

If neither increment or decrement is defined then the value of the counter will be incremented by one. If increment and decrement are both defined only increment operation is called.

// update counter simple.counter by 7
from("direct:in")
    .to("metrics:counter:simple.counter?increment=7")
    .to("direct:out");
// increment counter simple.counter by 1
from("direct:in")
    .to("metrics:counter:simple.counter")
    .to("direct:out");
// decrement counter simple.counter by 3
from("direct:in")
    .to("metrics:counter:simple.counter?decrement=3")
    .to("direct:out");

Headers

Message headers can be used to override increment and decrement values specified in Metrics component URI.

Name Description Expected type

CamelMetricsCounterIncrement

Override increment value in URI

Long

CamelMetricsCounterDecrement

Override decrement value in URI

Long

// update counter simple.counter by 417
from("direct:in")
    .setHeader(MetricsConstants.HEADER_COUNTER_INCREMENT, constant(417L))
    .to("metrics:counter:simple.counter?increment=7")
    .to("direct:out");
// updates counter using simple language to evaluate body.length
from("direct:in")
    .setHeader(MetricsConstants.HEADER_COUNTER_INCREMENT, simple("${body.length}"))
    .to("metrics:counter:body.length")
    .to("mock:out");

Metric type histogram

metrics:histogram:metricname[?options]

Options

Name Default Description

value

-

Value to use in histogram

If value is not set, nothing is added to histogram and warning is logged.

// adds value 9923 to simple.histogram
from("direct:in")
    .to("metrics:histogram:simple.histogram?value=9923")
    .to("direct:out");
// nothing is added to simple.histogram; warning is logged
from("direct:in")
    .to("metrics:histogram:simple.histogram")
    .to("direct:out");

Headers

Message header can be used to override value specified in Metrics component URI.

Name Description Expected type

CamelMetricsHistogramValue

Override histogram value in URI

Long

// adds value 992 to simple.histogram
from("direct:in")
    .setHeader(MetricsConstants.HEADER_HISTOGRAM_VALUE, constant(992L))
    .to("metrics:histogram:simple.histogram?value=700")
    .to("direct:out")

Metric type meter

metrics:meter:metricname[?options]

Options

Name Default Description

mark

-

Long value to use as mark

If mark is not set then meter.mark() is called without argument.

// marks simple.meter without value
from("direct:in")
    .to("metrics:simple.meter")
    .to("direct:out");
// marks simple.meter with value 81
from("direct:in")
    .to("metrics:meter:simple.meter?mark=81")
    .to("direct:out");

Headers

Message header can be used to override mark value specified in Metrics component URI.

Name Description Expected type

CamelMetricsMeterMark

Override mark value in URI

Long

// updates meter simple.meter with value 345
from("direct:in")
    .setHeader(MetricsConstants.HEADER_METER_MARK, constant(345L))
    .to("metrics:meter:simple.meter?mark=123")
    .to("direct:out");

Metrics type timer

metrics:timer:metricname[?options]

Options

Name Default Description

action

-

start or stop

If no action or invalid value is provided then warning is logged without any timer update. If action start is called on already running timer or stop is called on not running timer then nothing is updated and warning is logged.

// measure time taken by route "calculate"
from("direct:in")
    .to("metrics:timer:simple.timer?action=start")
    .to("direct:calculate")
    .to("metrics:timer:simple.timer?action=stop");

TimerContext objects are stored as Exchange properties between different Metrics component calls.

Headers

Message header can be used to override action value specified in Metrics component URI.

Name Description Expected type

CamelMetricsTimerAction

Override timer action in URI

org.apache.camel.component.metrics.MetricsTimerAction

// sets timer action using header
from("direct:in")
    .setHeader(MetricsConstants.HEADER_TIMER_ACTION, MetricsTimerAction.start)
    .to("metrics:timer:simple.timer")
    .to("direct:out");

Metric type gauge

metrics:gauge:metricname[?options]

Options

Name Default Description

subject

-

Any object to be observed by the gauge

If subject is not defined it’s simply ignored, i.e., the gauge is not registered.

// update gauge "simple.gauge" by a bean "mySubjectBean"
from("direct:in")
    .to("metrics:gauge:simple.gauge?subject=#mySubjectBean")
    .to("direct:out");

Headers

Message headers can be used to override subject values specified in Metrics component URI. Note: if CamelMetricsName header is specified, then new gauge is registered in addition to default one specified in a URI.

Name Description Expected type

CamelMetricsGaugeSubject

Override subject value in URI

Object

// update gauge simple.gauge by a String literal "myUpdatedSubject"
from("direct:in")
    .setHeader(MetricsConstants.HEADER_GAUGE_SUBJECT, constant("myUpdatedSubject"))
    .to("metrics:counter:simple.gauge?subject=#mySubjectBean")
    .to("direct:out");

MetricsRoutePolicyFactory

This factory allows adding a RoutePolicy for each route that exposes route utilization statistics using Dropwizard metrics. This factory can be used in Java and XML as the examples below demonstrates.

Instead of using the MetricsRoutePolicyFactory you can define a MetricsRoutePolicy per route you want to instrument, in case you only want to instrument a few selected routes.

From Java, you add the factory to the CamelContext as shown below:

context.addRoutePolicyFactory(new MetricsRoutePolicyFactory());

And from XML DSL you define a <bean> as follows:

  <!-- use camel-metrics route policy to gather metrics for all routes -->
  <bean id="metricsRoutePolicyFactory" class="org.apache.camel.component.metrics.routepolicy.MetricsRoutePolicyFactory"/>

The MetricsRoutePolicyFactory and MetricsRoutePolicy supports the following options:

Name Default Description

useJmx

false

Whether to report fine-grained statistics to JMX by using the com.codahale.metrics.JmxReporter.
Notice that if JMX is enabled on CamelContext then a MetricsRegistryService mbean is enlisted under the services type in the JMX tree. That mbean has a single operation to output the statistics using json. Setting useJmx to true is only needed if you want fine-grained mbeans per statistics type.

jmxDomain

org.apache.camel.metrics

The JMX domain name

prettyPrint

false

Whether to use pretty print when outputting statistics in json format

metricsRegistry

Allow using a shared com.codahale.metrics.MetricRegistry. If none is provided, then Camel will create a shared instance used by the CamelContext.

rateUnit

TimeUnit.SECONDS

The unit to use for rate in the metrics reporter or when dumping the statistics as json.

durationUnit

TimeUnit.MILLISECONDS

The unit to use for duration in the metrics reporter or when dumping the statistics as json.

namePattern

name.routeId.type

Camel 2.17: The name pattern to use. Use dot as separators, but you can change that. The values name, routeId, and type will be replaced with actual value. Where name is the name of the CamelContext. routeId is the name of the route. And type is the value of responses.

From Java code you can get hold of the com.codahale.metrics.MetricRegistry from the org.apache.camel.component.metrics.routepolicy.MetricsRegistryService as shown below:

MetricRegistryService registryService = context.hasService(MetricsRegistryService.class);
if (registryService != null) {
  MetricsRegistry registry = registryService.getMetricsRegistry();
  ...
}

MetricsMessageHistoryFactory

This factory allows using metrics to capture Message History performance statistics while routing messages. It works by using a metrics Timer for each node in all the routes. This factory can be used in Java and XML as the examples below demonstrates.

From Java, you set the factory to the CamelContext as shown below:

context.setMessageHistoryFactory(new MetricsMessageHistoryFactory());

And from XML DSL you define a <bean> as follows:

  <!-- use camel-metrics message history to gather metrics for all messages being routed -->
  <bean id="metricsMessageHistoryFactory" class="org.apache.camel.component.metrics.messagehistory.MetricsMessageHistoryFactory"/>

The following options are supported on the factory:

Name Default Description

useJmx

false

Whether to report fine-grained statistics to JMX by using the com.codahale.metrics.JmxReporter.
Notice that if JMX is enabled on CamelContext then a MetricsRegistryService mbean is enlisted under the services type in the JMX tree. That mbean has a single operation to output the statistics using json. Setting useJmx to true is only needed if you want fine-grained mbeans per statistics type.

jmxDomain

org.apache.camel.metrics

The JMX domain name

prettyPrint

false

Whether to use pretty print when outputting statistics in json format

metricsRegistry

Allow using a shared com.codahale.metrics.MetricRegistry. If none is provided, then Camel will create a shared instance used by the CamelContext.

rateUnit

TimeUnit.SECONDS

The unit to use for rate in the metrics reporter or when dumping the statistics as json.

durationUnit

TimeUnit.MILLISECONDS

The unit to use for duration in the metrics reporter or when dumping the statistics as json.

namePattern

name.routeId.id.type

The name pattern to use. Use dot as separators, but you can change that. The values name, routeId, type, and id will be replaced with actual value. Where name is the name of the CamelContext. routeId is the name of the route. The id pattern represents the node id. And type is the value of history.

At runtime the metrics can be accessed from Java API or JMX, which allows to gather the data as json output.

From Java code, you can get the service from the CamelContext as shown:

MetricsMessageHistoryService service = context.hasService(MetricsMessageHistoryService.class);
String json = service.dumpStatisticsAsJson();

And the JMX API the MBean is registered in the type=services tree with name=MetricsMessageHistoryService.

InstrumentedThreadPoolFactory

This factory allows you to gather performance information about Camel Thread Pools by injecting a InstrumentedThreadPoolFactory which collects information from the inside of Camel. See more details at Advanced configuration of CamelContext using Spring

Spring Boot Auto-Configuration

When using metrics with Spring Boot make sure to use the following Maven dependency to have support for auto configuration:

<dependency>
  <groupId>org.apache.camel.springboot</groupId>
  <artifactId>camel-metrics-starter</artifactId>
  <version>x.x.x</version>
  <!-- use the same version as your Camel core version -->
</dependency>

The component supports 4 options, which are listed below.

Name Description Default Type

camel.component.metrics.autowired-enabled

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 type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.

true

Boolean

camel.component.metrics.enabled

Whether to enable auto configuration of the metrics component. This is enabled by default.

Boolean

camel.component.metrics.lazy-start-producer

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 during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.

false

Boolean

camel.component.metrics.metric-registry

To use a custom configured MetricRegistry. The option is a com.codahale.metrics.MetricRegistry type.

MetricRegistry

蒲地蓝消炎片主治什么 天冬与麦冬有什么区别 什么病会通过唾液传播 脚起水泡是什么原因 梦见和女儿吵架是什么意思
织女是什么生肖 洗葡萄用什么洗最干净 光屏是什么 吃什么能让胸变大 牙齿疼吃什么药
抗衡是什么意思 6541是什么药 什么是婚检 眼白发黄是什么原因 癌变是什么意思
碱性食物都有什么 急性乳腺炎是什么原因引起的 什么茶降尿酸 喜欢趴着睡觉是什么原因 一月九号是什么星座
右侧卵巢无回声是什么意思hcv7jop9ns5r.cn 香菇炒什么菜好吃hcv7jop5ns2r.cn 扁桃体发炎是什么原因jasonfriends.com 双子座和什么座最不配hcv9jop7ns4r.cn 什么展翅hcv9jop1ns8r.cn
为什么会得阑尾炎hcv8jop4ns7r.cn 2014年是什么年hcv8jop2ns2r.cn 安徒生被誉为什么hcv8jop2ns3r.cn 痤疮用什么药膏hcv8jop8ns8r.cn 脂肪肝吃什么药好得快hcv8jop1ns2r.cn
三七粉是治什么病的hcv8jop3ns3r.cn 东北人喜欢吃什么菜bysq.com 透明的什么填词语hcv9jop6ns7r.cn 什么是接触性皮炎hcv8jop9ns8r.cn 风雨雷电代表什么生肖hcv8jop1ns3r.cn
eu是什么元素hanqikai.com 肾最怕什么食物hcv8jop4ns0r.cn 豆芽炒什么好吃hcv9jop7ns5r.cn 金蝉吃什么hcv8jop9ns5r.cn 平妻是什么意思hcv9jop2ns2r.cn
百度