تشغيل Kafka يتطلب مراقبة المقاييس الرئيسية — خاصة تأخر المستهلك (مدى تأخر المستهلكين) — بالإضافة إلى صحة الوسيط (broker)، الإنتاجية، وحالة القسم (partition). فهم المراقبة وتأخر المستهلك مهم لتشغيل Kafka بموثوقية.
تأخر المستهلك (مقياس رئيسي)
CONSUMER LAG → how far BEHIND a consumer is = (latest offset) − (consumer's committed offset):
→ high/growing lag → the consumer can't keep up with the production rate (a problem!)
→ indicates: slow processing, too few consumers, a stuck/failed consumer, or a traffic spike
→ monitor lag → detect when consumers fall behind (a primary Kafka health signal)
