Sorry. I mean the metrics regarding redelivered messages. The RabbitMQ version is 3.6.10.
I am currently feeding them into our alert chain via DataDog. I can see metrics related to message redeliveries via /api/overview
and /api/queues
within the message_stats
objects.
I think the DataDog Agent gets them here:
('message_stats/deliver_get_details/rate', 'messages.deliver_get.rate', float),
('message_stats/publish', 'messages.publish.count', float),
('message_stats/publish_details/rate', 'messages.publish.rate', float),
('message_stats/publish_in', 'messages.publish_in.count', float),
('message_stats/publish_in_details/rate', 'messages.publish_in.rate', float),
('message_stats/publish_out', 'messages.publish_out.count', float),
('message_stats/publish_out_details/rate', 'messages.publish_out.rate', float),
('message_stats/return_unroutable', 'messages.return_unroutable.count', float),
('message_stats/return_unroutable_details/rate', 'messages.return_unroutable.rate', float),
('message_stats/redeliver', 'messages.redeliver.count', float),
('message_stats/redeliver_details/rate', 'messages.redeliver.rate', float),
]
QUEUE_ATTRIBUTES = [
# Path, Name, Operation
('active_consumers', 'active_consumers', float),
('consumers', 'consumers', float),
('consumer_utilisation', 'consumer_utilisation', float),
('memory', 'memory', float),
('messages', 'messages', float),
('messages_details/rate', 'messages.rate', float),
('messages_ready', 'messages_ready', float),
('messages_unacknowledged_details/rate', 'messages_unacknowledged.rate', float),
('message_stats/ack', 'messages.ack.count', float),
('message_stats/ack_details/rate', 'messages.ack.rate', float),
('message_stats/deliver', 'messages.deliver.count', float),
('message_stats/deliver_details/rate', 'messages.deliver.rate', float),
('message_stats/deliver_get', 'messages.deliver_get.count', float),
('message_stats/deliver_get_details/rate', 'messages.deliver_get.rate', float),
('message_stats/publish', 'messages.publish.count', float),
('message_stats/publish_details/rate', 'messages.publish.rate', float),
('message_stats/redeliver', 'messages.redeliver.count', float),
('message_stats/redeliver_details/rate', 'messages.redeliver.rate', float),
]
NODE_ATTRIBUTES = [
('fd_used', 'fd_used', float),
('disk_free', 'disk_free', float),
('mem_used', 'mem_used', float),
('mem_limit', 'mem_limit', float),
('run_queue', 'run_queue', float),
('sockets_used', 'sockets_used', float),
('partitions', 'partitions', len),
('message_stats/deliver_get_details/rate', 'messages.deliver_get.rate', float),
('message_stats/publish', 'messages.publish.count', float),
('message_stats/publish_details/rate', 'messages.publish.rate', float),
('message_stats/publish_in', 'messages.publish_in.count', float),
('message_stats/publish_in_details/rate', 'messages.publish_in.rate', float),
('message_stats/publish_out', 'messages.publish_out.count', float),
('message_stats/publish_out_details/rate', 'messages.publish_out.rate', float),
('message_stats/return_unroutable', 'messages.return_unroutable.count', float),
('message_stats/return_unroutable_details/rate', 'messages.return_unroutable.rate', float),
('message_stats/redeliver', 'messages.redeliver.count', float),
('message_stats/redeliver_details/rate', 'messages.redeliver.rate', float),
]
ATTRIBUTES = {
EXCHANGE_TYPE: EXCHANGE_ATTRIBUTES,
QUEUE_TYPE: QUEUE_ATTRIBUTES,
NODE_TYPE: NODE_ATTRIBUTES,
OVERVIEW_TYPE: OVERVIEW_ATTRIBUTES,
}
TAG_PREFIX = 'rabbitmq'