Kafka'yı işletmek monitoring — özellikle consumer lag (consumer'ların ne kadar geride olduğu) — artı broker sağlığı, throughput ve partition durumu gibi temel metrikleri izlemeyi gerektirir. Monitoring ve consumer lag'i anlamak, Kafka'yı güvenilir bir şekilde çalıştırmak için önemlidir.
Consumer lag (temel bir metrik)
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)
