[
https://issues.apache.org/jira/browse/CAMEL-1902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978633#action_12978633
]
Ben O'Day commented on CAMEL-1902:
----------------------------------
I tried to update the wiki page, but I don't have access...
Can someone could add the following under the log component's ThroughputLogger
section...
a simple table of attributes:
groupSize - if specified will group message stats by this number of messages
groupInterval - if specified will group message stats by this time interval (in
millis)
groupDelay - default 0, set the initial delay for the stats
groupActiveOnly - defaults to true, if true, will hide stats when no new
messages have been received for a time interval, if false, show stats
regardless of message traffic
note: groupDelay and groupActiveOnly are only applicable when using
groupInterval
groupInterval example:
This route will result in message stats logged every 10s, with an initial 60s
delay and stats should be displayed even if there isn't any message traffic.
from("activemq:orders").
to("log:com.mycompany.order?level=DEBUG?groupInterval=10000&groupDelay=60000&groupActiveOnly=false").to("bean:processOrder");
The following will be logged:
"Received: 1000 new messages, with total 2000 so far. Last group took: 10000
millis which is: 100 messages per second. average: 100"
thanks...
> ThroughputLogger - Add ability to be timer based
> ------------------------------------------------
>
> Key: CAMEL-1902
> URL: https://issues.apache.org/jira/browse/CAMEL-1902
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Affects Versions: 2.0-M3
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.6.0
>
> Attachments: camel-core-throughputLogger-groupInterval.txt,
> camel-core-throughputLogger-groupInterval.txt
>
>
> The ThroughputLogger is based on a size so it reports when X messages has
> passed it.
> What is needed is to be able to say it should report every X period instead.
> And add option to not report before first message have arrived.
> And add option to not report if the value was 0 for the 2nd time in case of a
> long inactivity period
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.