camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r973560 - in /websites/production/camel/content: cache/main.pageCache metrics-component.html
Date Wed, 25 Nov 2015 18:18:42 GMT
Author: buildbot
Date: Wed Nov 25 18:18:42 2015
New Revision: 973560

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/metrics-component.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/metrics-component.html
==============================================================================
--- websites/production/camel/content/metrics-component.html (original)
+++ websites/production/camel/content/metrics-component.html Wed Nov 25 18:18:42 2015
@@ -205,7 +205,7 @@ from("direct:in")
 </div></div><p>And from XML DSL you define a &lt;bean&gt; as follows:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;!-- use camel-metrics route policy to gather metrics for all routes --&gt;
   &lt;bean id=&quot;metricsRoutePolicyFactory&quot; class=&quot;org.apache.camel.component.metrics.routepolicy.MetricsRoutePolicyFactory&quot;/&gt;]]></script>
-</div></div><p>The&#160;<code>MetricsRoutePolicyFactory</code>
and&#160;<code>MetricsRoutePolicy</code> supports the following options:</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh">Name</th><th colspan="1" rowspan="1" class="confluenceTh">Default</th><th
colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">useJmx</td><td colspan="1" rowspan="1"
class="confluenceTd">false</td><td colspan="1" rowspan="1" class="confluenceTd">Whether
to report fine grained statistics to JMX by using the <code>com.codahale.metrics.JmxReporter</code>.<br
clear="none">Notice that if JMX is enabled on <a shape="rect" href="camelcontext.html">CamelContext</a>
then a <code>MetricsRegistryService</code> mbean is enlisted under the services
type in the JMX tree. That mbean has a single operation to output the statistics using json.
Setting <code>useJmx</code> to true is onl
 y needed if you want fine grained mbeans per statistics type.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">jmxDomain</td><td colspan="1" rowspan="1"
class="confluenceTd">org.apache.camel.metrics</td><td colspan="1" rowspan="1"
class="confluenceTd">The JMX domain name</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd">prettyPrint</td><td colspan="1" rowspan="1" class="confluenceTd">false</td><td
colspan="1" rowspan="1" class="confluenceTd">Whether to use pretty print when outputting
statistics in json format</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">metricsRegistry</td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd">Allow to use a shared <code>com.codahale.metrics.MetricRegistry</code>.
If none is provided then Camel will create a shared instance used by the this CamelContext.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">rateUnit</td><td colspan="1" rowspan="1
 " class="confluenceTd">TimeUnit.SECONDS</td><td colspan="1" rowspan="1" class="confluenceTd">The
unit to use for rate in the metrics reporter or when dumping the statistics as json.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">durationUnit</td><td colspan="1"
rowspan="1" class="confluenceTd">TimeUnit.MILLISECONDS</td><td colspan="1" rowspan="1"
class="confluenceTd">The unit to use for duration in the metrics reporter or when dumping
the statistics as json.</td></tr></tbody></table></div><p>&#160;</p><p>From
Java code tou can get hold of the&#160;<code>com.codahale.metrics.MetricRegistry</code><span>&#160;from
the <code>org.apache.camel.component.metrics.routepolicy.MetricsRegistryService</code>
as shown below:</span></p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+</div></div><p>The&#160;<code>MetricsRoutePolicyFactory</code>
and&#160;<code>MetricsRoutePolicy</code> supports the following options:</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh">Name</th><th colspan="1" rowspan="1" class="confluenceTh">Default</th><th
colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">useJmx</td><td colspan="1" rowspan="1"
class="confluenceTd">false</td><td colspan="1" rowspan="1" class="confluenceTd">Whether
to report fine grained statistics to JMX by using the <code>com.codahale.metrics.JmxReporter</code>.<br
clear="none">Notice that if JMX is enabled on <a shape="rect" href="camelcontext.html">CamelContext</a>
then a <code>MetricsRegistryService</code> mbean is enlisted under the services
type in the JMX tree. That mbean has a single operation to output the statistics using json.
Setting <code>useJmx</code> to true is onl
 y needed if you want fine grained mbeans per statistics type.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">jmxDomain</td><td colspan="1" rowspan="1"
class="confluenceTd">org.apache.camel.metrics</td><td colspan="1" rowspan="1"
class="confluenceTd">The JMX domain name</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd">prettyPrint</td><td colspan="1" rowspan="1" class="confluenceTd">false</td><td
colspan="1" rowspan="1" class="confluenceTd">Whether to use pretty print when outputting
statistics in json format</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">metricsRegistry</td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd">Allow to use a shared <code>com.codahale.metrics.MetricRegistry</code>.
If none is provided then Camel will create a shared instance used by the this CamelContext.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">rateUnit</td><td colspan="1" rowspan="1
 " class="confluenceTd">TimeUnit.SECONDS</td><td colspan="1" rowspan="1" class="confluenceTd">The
unit to use for rate in the metrics reporter or when dumping the statistics as json.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">durationUnit</td><td colspan="1"
rowspan="1" class="confluenceTd">TimeUnit.MILLISECONDS</td><td colspan="1" rowspan="1"
class="confluenceTd">The unit to use for duration in the metrics reporter or when dumping
the statistics as json.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">namePattern</td><td
colspan="1" rowspan="1" class="confluenceTd">##name##.##routeId##.##type##</td><td
colspan="1" rowspan="1" class="confluenceTd"><strong>Camel 2.17:</strong> The
name pattern to use. Uses dot as separators, but you can change that. The values ##name##,
##routeId##, and ##type## will be replaced with actual value.</td></tr></tbody></table></div><p>&#160;</p><p>From
Java code tou can get hold of the&#160;<code>com.codahale.metrics.Metri
 cRegistry</code><span>&#160;from the <code>org.apache.camel.component.metrics.routepolicy.MetricsRegistryService</code>
as shown below:</span></p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[MetricRegistryService
registryService = context.hasService(MetricsRegistryService.class);
 if (registryService != null) {
   MetricsRegistry registry = registryService.getMetricsRegistry();



Mime
View raw message