[ https://issues.apache.org/jira/browse/AMQ-9552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18020754#comment-18020754 ]
Matt Pavlovich commented on AMQ-9552: ------------------------------------- Is there a scenario not covered by the advancedMessageStatistics provided in AMQ-8463? > 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: 2h > 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: issues-unsubscr...@activemq.apache.org For additional commands, e-mail: issues-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact