การใช้งาน RabbitMQ ต้องอาศัยการ monitor metric สำคัญ (queue depth, message rate, สุขภาพของ consumer, ทรัพยากร) และการใช้เครื่องมือจัดการ การเข้าใจการ monitor และการจัดการมีความสำคัญต่อการรัน RabbitMQ ให้เชื่อถือได้
metric สำคัญที่ต้อง monitor
✓ QUEUE DEPTH (length) → growing queues = consumers can't keep up (a key signal!) — like
consumer lag; investigate (add consumers, fix slow processing)
✓ MESSAGE RATES → publish rate vs deliver/ack rate (in vs out — are they balanced?)
✓ CONSUMER count and health → are consumers connected and processing?
✓ UNACKED messages → many unacked = slow/stuck consumers
✓ RESOURCES → memory, disk, CPU, connections, file descriptors (RabbitMQ has memory/disk
alarms that block publishing when thresholds are hit!)
✓ DEAD LETTER queue size → failed messages accumulating (signals problems)
