You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Espen Andreassen (Jira)" <ji...@apache.org> on 2020/06/29 09:36:00 UTC

[jira] [Commented] (CAMEL-15255) camel-micrometer- Extend set of metrics provided

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

Espen Andreassen commented on CAMEL-15255:
------------------------------------------

I've already implemented these metrics like this:
 
 A RoutePolicy which provides counters on exchanges completed and failed. These are incremented according to the response on " isFailed()" on the exchange in the "onDone" hook of the RoutePolicy.
 
 An EventNotifier on ExchangeEvents which provides a gauge on inflight exchanges per route. When the notifier is notified, the "fromRouteId" is extracted from the event and then used to find the current inflight exchanges for the route of the exchange using the inflight repository.
 
 If there is any interest in this, I can prepare a pull request?

> camel-micrometer- Extend set of metrics provided
> ------------------------------------------------
>
>                 Key: CAMEL-15255
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15255
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-micrometer
>            Reporter: Espen Andreassen
>            Priority: Major
>
> The camel-micrometer component includes a RoutePolicy, EventNotifiers and a MessageHistory, which provides a set of metrics. I think it would be a great improvement to expand this set, more particularly with metrics on:
>  * Total count of exchanges completed, per route
>  * Total count of exchanges failed, per route
>  * Current count of exchanges inflight, per route
> I find these metrics to be highly useful in the context of monitoring camel apps and would assume others do as well.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)