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

Justin Bertram commented on ARTEMIS-4524:
-----------------------------------------

Can you elaborate on exactly which MBean attributes you were inspecting 
previously to get *per minute* statistics?

In ActiveMQ Artemis historical queue data is not tracked by default since it 
imposes a performance penalty. However, you can activate [message 
counters|https://activemq.apache.org/components/artemis/documentation/latest/management.html#message-counters]
 on the queues for which you need these statistics.

A more robust solution would be to use 
[metrics|https://activemq.apache.org/components/artemis/documentation/latest/metrics.html#metrics]
 which can be consumed by a time-series database like Prometheus from which you 
can create rich dashboards and alerts with a tool like Grafana. Generally 
speaking this is the recommended approach as it offloads the task of tracking 
historical data from the broker and provides a much larger feature set for 
users.

In the future please direct questions like this to the [ActiveMQ users mailing 
list|https://activemq.apache.org/contact].

> Add MessagesAdded and MessagesAcknowledged in last minute
> ---------------------------------------------------------
>
>                 Key: ARTEMIS-4524
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4524
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>          Components: Broker
>            Reporter: Gasperc
>            Priority: Major
>              Labels: features
>
> Hi,
> we've switched to ArtemisMQ from ActiveMQ and noticed there isn't any option 
> to monitor EnqueueCount and DequeueCount *per minute* through JMX. This was 
> possible in (old?) versions of ActiveMQ.
> I have the option to monitor MessagesAcknowledged (same as DequeueCount if I 
> understand it correctly), but only since the last restart of the broker. This 
> does not tell me much about current flow of messages without some 
> post-processing of data on my side.
> Would it be possible to add metrics to monitor messages added and 
> acknowledged in the last minute?
>  
> Thank you



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

Reply via email to