topic별 발행된 데이터 개수를 확인
kubectl exec -n namespace kafka-0 -- kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic [topic name]
// 출력 결과는 $TOPIC_NAME:$PARTITION_ID:$OFFSET 형식
값 확인
kubectl exec -n [namespace] kafka-0 -- kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic [topic name] --property print.key=true --property key.separator="-" --from-beginning
consumer lag 확인
kubectl exec -n namespace kafka-0 -- kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group [group name]
'개발' 카테고리의 다른 글
Windows 10 + Intellij(+ Flutter Plugin) 를 이용한 flutter 개발 환경 구축하기 (0) | 2022.09.30 |
---|---|
[kubernetes] k8s secret decoding command (0) | 2022.09.30 |
[kubernetes] k8s evicted status pod 한 번에 삭제 (0) | 2022.09.23 |
[kubernetes] microk8s x509: certificate has expired or is not yet valid (0) | 2022.09.23 |
터미널에서 Git branch 와 conda 가상 환경 함께 보기 (0) | 2022.09.22 |