Kafka चा संचालन करण्यासाठी निरीक्षण मुख्य metrics — विशेषतः consumer lag (consumer किती मागे आहेत) — तसेच broker health, throughput, आणि partition status आवश्यक आहे. Kafka विश्वसनीयपणे चलवण्यासाठी निरीक्षण आणि consumer lag समजून घेणे महत्वाचे आहे.
Consumer lag (एक मुख्य metric)
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)
