[ 
https://issues.apache.org/jira/browse/ARTEMIS-2897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17246829#comment-17246829
 ] 

Justin Bertram commented on ARTEMIS-2897:
-----------------------------------------

At this point I'm against adding a metric for first-message-age for two main 
reasons. First, I don't know what it provides that can't already be deduced 
from metrics which are already reported. Second, it's a fairly expensive 
operation as it requires creating a queue iterator internally. Metrics are 
gathered on a frequent basis so its important that they perform well. 

[~pkuzel], can you elaborate on your use-case and how it relates to my concerns?

> Metrics: a queue meter matching management.QueueControl.getFirstMessageAge() 
> -----------------------------------------------------------------------------
>
>                 Key: ARTEMIS-2897
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2897
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 2.14.0
>            Reporter: Petr Kuzel
>            Priority: Major
>
> The micrometer-instrumentation of the broker queues lacks a gauge for the 
> oldest message in the queue.
>  
> Could you implement the "first.message.age.ms" meter for queues, please?  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to