btlqql opened a new issue, #2347:
URL: https://github.com/apache/rocketmq-dashboard/issues/2347

   ### Description
   
   The Apache provider currently reports `msgPutTotalTodayMorning` directly as 
`totalMessagesToday`. That value is the broker's cumulative counter snapshot 
taken at the start of the day, not the number of messages produced today.
   
   For example, when the midnight snapshot is 1,000 and the current cumulative 
counter is 1,042, the dashboard reports 1,000 instead of 42. The error becomes 
increasingly misleading on long-running brokers.
   
   ### Expected behavior
   
   For each master broker, today's produced-message count should be 
`msgPutTotalTodayNow - msgPutTotalTodayMorning`. Invalid, missing, negative, or 
backwards counter pairs should not create a negative or inflated dashboard 
total.
   
   ### Proposed fix
   
   Calculate a non-negative delta for each broker and add regression coverage 
for multiple brokers, backwards counters, and malformed values.


-- 
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