[ 
https://issues.apache.org/jira/browse/AMQ-9552?focusedWorklogId=966102&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-966102
 ]

ASF GitHub Bot logged work on AMQ-9552:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Apr/25 21:58
            Start Date: 14/Apr/25 21:58
    Worklog Time Spent: 10m 
      Work Description: mattrpav commented on PR #1285:
URL: https://github.com/apache/activemq/pull/1285#issuecomment-2803125874

   The advancedMessageFlow statistics are implemented and released in 5.19.x 
(and soon 6.2.0) 
   
   Please review the added metrics: 
https://github.com/apache/activemq/blob/main/activemq-client/src/main/java/org/apache/activemq/management/MessageFlowStatsImpl.java#L21
   
   I believe this PR is addressed with the _enqueuedMessageBrokerInTime_ or 
_enqueuedMessageTimestamp_ value.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 966102)
    Time Spent: 1h 40m  (was: 1.5h)

> StatisticsPlugin - add metric lastMessageTimestamp
> --------------------------------------------------
>
>                 Key: AMQ-9552
>                 URL: https://issues.apache.org/jira/browse/AMQ-9552
>             Project: ActiveMQ Classic
>          Issue Type: Improvement
>          Components: Broker
>            Reporter: Grzegorz Kochański
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 6.2.0
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> Metric {{lastMessageTimestamp}} can be captured from the modification time of 
> metric {{enqueues:}}
>  
> {code:java}
> statsMessage.setLong("lastMessageTimestamp", 
> stats.getEnqueues().getLastSampleTime()); {code}
>  
> Disclaimer: disadvantage of such approach is that after broker restart this 
> value is holding start time of the broker (which may be relevant when the 
> frequency of broker restarts is comparable to the frequency of enqueued 
> messages)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to