Kafka सञ्चालन गर्नको लागि निगरानी महत्वपूर्ण मेट्रिक्स — विशेषगरी consumer lag (उपभोक्ताहरू कति पछि छन्) — साथै broker स्वास्थ्य, throughput, र partition status आवश्यक छ। Kafka को निगरानी र consumer lag को बोध विश्वसनीयतासाथ Kafka सञ्चालन गर्नको लागि महत्वपूर्ण छ।
Consumer lag (एक मुख्य मेट्रिक)
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)
