Management - Get performance statistics as XML per CamelContext or per Route
----------------------------------------------------------------------------
Key: CAMEL-4946
URL: https://issues.apache.org/jira/browse/CAMEL-4946
Project: Camel
Issue Type: Improvement
Components: camel-core, jmx
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 2.10.0
Currently its harder for tooling such as JConsole, Camel Karaf Shell or others
to gather performance statistics of a CamelContext and its routes, as you will
have to use the JMX API and loop each route, and gather processors, and
associate the processors with the route etc. And then use the fine grained
attributes on the ManagedProcessorMBean to get the performance statistics.
This is a bit cumbersome, and also very chatty API calls, especially if the JMX
is remoting, and it makes it slower to gather stats.
As we got XML outputs for bulk of data such as routes etc, we should have a
single API call to get the full stats for the entire CamelContext, or per route
basis. Using XML as return type, makes it much easier for any kind of tooling
and language to use the data. Instead of tying to use the JMX OpenMBean
structure which is Java only based.
SIDENOTE START:
For Camel 3.0 we should offer a JSON output with a REST based management API as
well. But that would require a possible new camel-core-management component
which as a JSON library in use such as Jackson.
SIDENOTE END:
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira