gbhavya07 opened a new pull request, #24658:
URL: https://github.com/apache/camel/pull/24658

   # Description
   
   This PR implements **CAMEL-24032** by adding a rolling 1-minute exchange 
rate metric to `ManagedPerformanceCounter`.
   
   The new metric tracks the number of exchanges completed or failed during the 
last 60 seconds and is available when the Management Statistics Level is set to 
`Extended`. When extended statistics are not enabled, the metric returns `-1`, 
consistent with the existing percentile metrics.
   
   The metric is exposed through:
   - JMX (`ExchangeRate1m`)
   - XML statistics output
   - JSON statistics output
   - Camel Dev Console
   
   A unit test has also been added to verify the new metric is exposed 
correctly through JMX for both route and context statistics.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a JIRA issue filed for the change: **CAMEL-24032**.
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   I attempted to run ./mvnw clean install -DskipTests from the repository 
root, but the build failed in the unrelated camel-kserve module. The changes in 
camel-management and camel-console build successfully, and the relevant tests 
pass.
   
   # AI-assisted contributions
   
   - [ ] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to