[Other] Recommended way to count messages for auto-scaling when not using prometheus #13407
-
Community Support Policy
RabbitMQ version used4.0.3 How is RabbitMQ deployed?Community Docker image Steps to reproduce the behavior in questionI have seen in the monitoring docs that the management plugin API should only be used for development environments, and for production prometheus is recommended. We want to auto-scale services based on the number of messages in a queue including ready and unacknowledged, but do not plan to use prometheus. For auto-scaling we use Keda (see kedacore/keda#6494). Counting messages using the amqps protocol doesn't work because it doesn't support counting unacknowledged messages. The only current alternative in keda is to use https via the management plugin. But this conflicts a bit with what we see in the rabbitmq docs. An idea could be to implement counting of messages through the rabbitmq_prometheus plugin. But from what I understand that can't be used to get information about a single queue, making it a bit overkill each call would provide too much non-relevant information. Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@mauvilsa use DO NOT use |
Beta Was this translation helpful? Give feedback.
@mauvilsa use
GET /api/queues/{vhost}/{name}
.DO NOT use
GET /api/queues
to get a few metrics of one queue, that would be really really wasteful.