You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by William Crowell <WC...@perforce.com.INVALID> on 2024/05/14 13:45:01 UTC

Unrouted Message Count and Address Size Metrics

Hi.  Can someone please tell me what “unrouted.message.count” is?  I am seeing several topics with the number of unrouted messages over 100k, and I am not sure if this is a concern or not.

I am also interested in what “Address size” is.

There is not much in the documentation on these metrics unless I missed something: https://activemq.apache.org/components/artemis/documentation/2.13.0/metrics.html

Regards,

William Crowell


This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.


Re: Unrouted Message Count and Address Size Metrics

Posted by Alexander Milovidov <mi...@gmail.com>.
I'm not sure but I think the descriptions are written somewhere in the
properties of corresponding object class in the Artemis source code and
used by the metrics plugin.
For example, I have found the descriptions here:
https://github.com/apache/activemq-artemis/blob/23522fd83d3c16ca637223fa336103a73bd86905/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/management/AddressControl.java#L28

Unrouted messages are just dropped because they should not be sent to any
queue on the address.
Messages with incorrect routing type also can not be routed (for example,
multicast messages which are sent to the address with anycast queue).

вт, 14 мая 2024 г. в 21:51, William Crowell <WC...@perforce.com.invalid>:

> Another question I would have is: Are unrouted messages kept in memory or
> just dropped?
>
> Regards,
>
> William Crowell
>
> From: William Crowell <WC...@perforce.com.INVALID>
> Date: Tuesday, May 14, 2024 at 2:36 PM
> To: users@activemq.apache.org <us...@activemq.apache.org>
> Subject: Re: Unrouted Message Count and Address Size Metrics
> Alexander,
>
> Thank you for your reply.  Where did you get that description?  I did not
> see it in the metrics plugin you shared.
>
> Regards,
>
> William Crowell
>
> From: Alexander Milovidov <mi...@gmail.com>
> Date: Tuesday, May 14, 2024 at 11:46 AM
> To: users@activemq.apache.org <us...@activemq.apache.org>
> Subject: Re: Unrouted Message Count and Address Size Metrics
> Hi William,
>
> I have configured metrics plugin which works as a Prometheus exporter.
> Usually every exporter has a small description for each metric, which is
> available on the /metrics endpoint as # HELP text.
>
> Unrouted messages count is the number of messages which were sent to the
> address and have not been routed to any queue bound to this address (for
> example - message was filtered out or queue was disabled).
> Address size is "the number of estimated bytes being used by all the
> queue(s) bound to this address; used to control paging and blocking".
>
> artemis-prometheus-metrics-plugin github:
> https://github.com/rh-messaging/artemis-prometheus-metrics-plugin
> (thanks to Justin Bertram and contributors)
>
>
> вт, 14 мая 2024 г. в 16:45, William Crowell <WCrowell@perforce.com.invalid
> >:
>
> > Hi.  Can someone please tell me what “unrouted.message.count” is?  I am
> > seeing several topics with the number of unrouted messages over 100k,
> and I
> > am not sure if this is a concern or not.
> >
> > I am also interested in what “Address size” is.
> >
> > There is not much in the documentation on these metrics unless I missed
> > something:
> >
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Factivemq.apache.org%2Fcomponents%2Fartemis%2Fdocumentation%2F2.13.0%2Fmetrics.html&data=05%7C02%7CWCrowell%40perforce.com%7C25e291b18712470fd64608dc7444c471%7C95b666d19a7549ab95a38969fbcdc08c%7C0%7C0%7C638513085932857524%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=GEGZRSk1FQ5BryMQ53PUTCbrJkhhcDSGq4RzXD%2F5aC8%3D&reserved=0
> <
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Factivemq.apache.org%2Fcomponents%2Fartemis%2Fdocumentation%2F2.13.0%2Fmetrics.html&data=05%7C02%7CWCrowell%40perforce.com%7C25e291b18712470fd64608dc7444c471%7C95b666d19a7549ab95a38969fbcdc08c%7C0%7C0%7C638513085932864392%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=VsnGZMZJVAx4uU%2FERwvAw6kSSXKUMuXSrN1dQqtLTHM%3D&reserved=0
> ><
> https://activemq.apache.org/components/artemis/documentation/2.13.0/metrics.html
> >
> >
> > Regards,
> >
> > William Crowell
> >
> >
> > This e-mail may contain information that is privileged or confidential.
> If
> > you are not the intended recipient, please delete the e-mail and any
> > attachments and notify us immediately.
> >
> >
>
>
> CAUTION: This email originated from outside of the organization. Do not
> click on links or open attachments unless you recognize the sender and know
> the content is safe.
>
>
> This e-mail may contain information that is privileged or confidential. If
> you are not the intended recipient, please delete the e-mail and any
> attachments and notify us immediately.
>
>
> This e-mail may contain information that is privileged or confidential. If
> you are not the intended recipient, please delete the e-mail and any
> attachments and notify us immediately.
>
>

Re: Unrouted Message Count and Address Size Metrics

Posted by William Crowell <WC...@perforce.com.INVALID>.
Another question I would have is: Are unrouted messages kept in memory or just dropped?

Regards,

William Crowell

From: William Crowell <WC...@perforce.com.INVALID>
Date: Tuesday, May 14, 2024 at 2:36 PM
To: users@activemq.apache.org <us...@activemq.apache.org>
Subject: Re: Unrouted Message Count and Address Size Metrics
Alexander,

Thank you for your reply.  Where did you get that description?  I did not see it in the metrics plugin you shared.

Regards,

William Crowell

From: Alexander Milovidov <mi...@gmail.com>
Date: Tuesday, May 14, 2024 at 11:46 AM
To: users@activemq.apache.org <us...@activemq.apache.org>
Subject: Re: Unrouted Message Count and Address Size Metrics
Hi William,

I have configured metrics plugin which works as a Prometheus exporter.
Usually every exporter has a small description for each metric, which is
available on the /metrics endpoint as # HELP text.

Unrouted messages count is the number of messages which were sent to the
address and have not been routed to any queue bound to this address (for
example - message was filtered out or queue was disabled).
Address size is "the number of estimated bytes being used by all the
queue(s) bound to this address; used to control paging and blocking".

artemis-prometheus-metrics-plugin github:
https://github.com/rh-messaging/artemis-prometheus-metrics-plugin
(thanks to Justin Bertram and contributors)


вт, 14 мая 2024 г. в 16:45, William Crowell <WC...@perforce.com.invalid>:

> Hi.  Can someone please tell me what “unrouted.message.count” is?  I am
> seeing several topics with the number of unrouted messages over 100k, and I
> am not sure if this is a concern or not.
>
> I am also interested in what “Address size” is.
>
> There is not much in the documentation on these metrics unless I missed
> something:
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Factivemq.apache.org%2Fcomponents%2Fartemis%2Fdocumentation%2F2.13.0%2Fmetrics.html&data=05%7C02%7CWCrowell%40perforce.com%7C25e291b18712470fd64608dc7444c471%7C95b666d19a7549ab95a38969fbcdc08c%7C0%7C0%7C638513085932857524%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=GEGZRSk1FQ5BryMQ53PUTCbrJkhhcDSGq4RzXD%2F5aC8%3D&reserved=0<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Factivemq.apache.org%2Fcomponents%2Fartemis%2Fdocumentation%2F2.13.0%2Fmetrics.html&data=05%7C02%7CWCrowell%40perforce.com%7C25e291b18712470fd64608dc7444c471%7C95b666d19a7549ab95a38969fbcdc08c%7C0%7C0%7C638513085932864392%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=VsnGZMZJVAx4uU%2FERwvAw6kSSXKUMuXSrN1dQqtLTHM%3D&reserved=0><https://activemq.apache.org/components/artemis/documentation/2.13.0/metrics.html>
>
> Regards,
>
> William Crowell
>
>
> This e-mail may contain information that is privileged or confidential. If
> you are not the intended recipient, please delete the e-mail and any
> attachments and notify us immediately.
>
>


CAUTION: This email originated from outside of the organization. Do not click on links or open attachments unless you recognize the sender and know the content is safe.


This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.


This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.


Re: Unrouted Message Count and Address Size Metrics

Posted by William Crowell <WC...@perforce.com.INVALID>.
Alexander,

Thank you for your reply.  Where did you get that description?  I did not see it in the metrics plugin you shared.

Regards,

William Crowell

From: Alexander Milovidov <mi...@gmail.com>
Date: Tuesday, May 14, 2024 at 11:46 AM
To: users@activemq.apache.org <us...@activemq.apache.org>
Subject: Re: Unrouted Message Count and Address Size Metrics
Hi William,

I have configured metrics plugin which works as a Prometheus exporter.
Usually every exporter has a small description for each metric, which is
available on the /metrics endpoint as # HELP text.

Unrouted messages count is the number of messages which were sent to the
address and have not been routed to any queue bound to this address (for
example - message was filtered out or queue was disabled).
Address size is "the number of estimated bytes being used by all the
queue(s) bound to this address; used to control paging and blocking".

artemis-prometheus-metrics-plugin github:
https://github.com/rh-messaging/artemis-prometheus-metrics-plugin
(thanks to Justin Bertram and contributors)


вт, 14 мая 2024 г. в 16:45, William Crowell <WC...@perforce.com.invalid>:

> Hi.  Can someone please tell me what “unrouted.message.count” is?  I am
> seeing several topics with the number of unrouted messages over 100k, and I
> am not sure if this is a concern or not.
>
> I am also interested in what “Address size” is.
>
> There is not much in the documentation on these metrics unless I missed
> something:
> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Factivemq.apache.org%2Fcomponents%2Fartemis%2Fdocumentation%2F2.13.0%2Fmetrics.html&data=05%7C02%7CWCrowell%40perforce.com%7Cd53a3840e8954ef348be08dc742d016f%7C95b666d19a7549ab95a38969fbcdc08c%7C0%7C0%7C638512983857533201%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=T9oKiiMwMBYwTW6Pvek7qk3CtPdqGbpZZeo2I6N1v8M%3D&reserved=0<https://activemq.apache.org/components/artemis/documentation/2.13.0/metrics.html>
>
> Regards,
>
> William Crowell
>
>
> This e-mail may contain information that is privileged or confidential. If
> you are not the intended recipient, please delete the e-mail and any
> attachments and notify us immediately.
>
>


CAUTION: This email originated from outside of the organization. Do not click on links or open attachments unless you recognize the sender and know the content is safe.


This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.


Re: Unrouted Message Count and Address Size Metrics

Posted by Alexander Milovidov <mi...@gmail.com>.
Hi William,

I have configured metrics plugin which works as a Prometheus exporter.
Usually every exporter has a small description for each metric, which is
available on the /metrics endpoint as # HELP text.

Unrouted messages count is the number of messages which were sent to the
address and have not been routed to any queue bound to this address (for
example - message was filtered out or queue was disabled).
Address size is "the number of estimated bytes being used by all the
queue(s) bound to this address; used to control paging and blocking".

artemis-prometheus-metrics-plugin github:
https://github.com/rh-messaging/artemis-prometheus-metrics-plugin
(thanks to Justin Bertram and contributors)


вт, 14 мая 2024 г. в 16:45, William Crowell <WC...@perforce.com.invalid>:

> Hi.  Can someone please tell me what “unrouted.message.count” is?  I am
> seeing several topics with the number of unrouted messages over 100k, and I
> am not sure if this is a concern or not.
>
> I am also interested in what “Address size” is.
>
> There is not much in the documentation on these metrics unless I missed
> something:
> https://activemq.apache.org/components/artemis/documentation/2.13.0/metrics.html
>
> Regards,
>
> William Crowell
>
>
> This e-mail may contain information that is privileged or confidential. If
> you are not the intended recipient, please delete the e-mail and any
> attachments and notify us immediately.
>
>

Re: Unrouted Message Count and Address Size Metrics

Posted by Justin Bertram <jb...@apache.org>.
I imagine there are differences between the protocols which Micrometer
supports for metrics plugin integration, but if, for example, you
configured the Prometheus metrics plugin and then loaded
http://myBroker:8161/metrics/ you would see this (among other things):

  ...
  # HELP artemis_routed_message_count number of messages routed to one or
more bindings
  ...
  # HELP artemis_unrouted_message_count number of messages not routed to
any bindings

This "help" text is shared by the JMX MBeans and is also found in the
JavaDoc for the corresponding management method (e.g. here [1]).

Whether a high unrouted.message.count is a concern really depends on your
use-case.

Unrouted messages are dropped _unless_ you've configured
send-to-dla-on-no-route [2] as true and you've got a dead-letter address
with a queue to receive those unrouted messages.


Justin

[1]
https://activemq.apache.org/components/artemis/documentation/javadocs/javadoc-latest/org/apache/activemq/artemis/api/core/management/AddressControl.html#getUnRoutedMessageCount()
[2]
https://activemq.apache.org/components/artemis/documentation/latest/address-settings.html#address-settings

On Tue, May 14, 2024 at 8:45 AM William Crowell
<WC...@perforce.com.invalid> wrote:

> Hi.  Can someone please tell me what “unrouted.message.count” is?  I am
> seeing several topics with the number of unrouted messages over 100k, and I
> am not sure if this is a concern or not.
>
> I am also interested in what “Address size” is.
>
> There is not much in the documentation on these metrics unless I missed
> something:
> https://activemq.apache.org/components/artemis/documentation/2.13.0/metrics.html
>
> Regards,
>
> William Crowell
>
>
> This e-mail may contain information that is privileged or confidential. If
> you are not the intended recipient, please delete the e-mail and any
> attachments and notify us immediately.
>
>