You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/07/25 13:49:04 UTC

[jira] [Commented] (CAMEL-9014) Add statistics for usage of endpoints in EIPs

    [ https://issues.apache.org/jira/browse/CAMEL-9014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14641557#comment-14641557 ] 

Claus Ibsen commented on CAMEL-9014:
------------------------------------

There is a new option on jmx agent you can turn on `extendedStatisticsEnabled` that enables this. Then there is JMX operations on various EIP mbeans to return the utilization statistics of the endpoints, so you can see how many times which endpoint are used.

> Add statistics for usage of endpoints in EIPs
> ---------------------------------------------
>
>                 Key: CAMEL-9014
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9014
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core, jmx
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.16.0
>
>
> We can gather statistics for how often each endpoint is used in dynamic EIPs such as recipient list, dynamic to, enricher, pollEnricher, dynamic router, and so on.
> However this requires to store counters, and that would require AtomicLong so they are safe in concurrent environments, or use long with synchronized. 
> We can have an option on JMXAgent to turn this on|off so people can turn it off if they dont need it.
> However it may be nice to see which are the most used endpoint uris in all those dynamic EIPs.
> Today you can see it from the managed endpoint registry, but it does not keep score which EIP its used by.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)