[
https://issues.apache.org/jira/browse/ARTEMIS-2995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17232990#comment-17232990
]
Justin Bertram commented on ARTEMIS-2995:
-----------------------------------------
bq. As of today there is no way to monitor the number of delayed messages.
That's not accurate. You can use the {{getScheduledCount}} from the
corresponding {{QueueControl}}.
Keep in mind that the "message counters" functionality you referenced is more
for tracking message metrics over time as the counters can keep historical
data. That said, when this functionality was originally designed and
implemented over 10 years ago now things like powerful and easy-to-use
time-series databases weren't around. These days, however, instead of using
message counters I would recommend you use a [metrics
plugin|http://activemq.apache.org/components/artemis/documentation/latest/metrics.html]
and integrate with a time-series database like
[Prometheus|https://prometheus.io/] for example. If you want to go this route a
suitable plugin is available
[here|https://github.com/jbertram/artemis-prometheus-metrics-plugin].
> Having a JMX counter for delayed messages
> -----------------------------------------
>
> Key: ARTEMIS-2995
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2995
> Project: ActiveMQ Artemis
> Issue Type: New Feature
> Components: JMX
> Affects Versions: 2.16.0
> Reporter: François Courtault
> Priority: Major
>
> Hello,
> As of today there is no way to monitor the number of delayed messages.
> So, could we have a new JMX counter which provides the number of delayed
> messages ?
> Indeed, looking at the Artemis documentation at
> [https://activemq.apache.org/components/artemis/documentation/latest/management.html]
> , the counters available (section Message Counters) are:
> * count
> * countDelta
> * messageCount
> * messageCountDelta
> * lastAddTimestamp
> * lastAckTimestamp
> * updateTimestamp
> I don't think the delayed message counter is included in these above
> counters, right ? But, may be, I am wrong.
> Best Regards.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)