附录一:
### --- 报错现象:
~~~ 报错现象:Prometheus监控不到数据
~~~ 报错现象:http://prom.test.com——>Alerts——>Enable query history——>没有kafka数据
### --- 报错分析:
~~~ # 查看kafka-exporter的po地址
[root@k8s-master01 kafka-exporter]# kubectl get po -n monitoring -owide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
kafka-exporter-d47b9f76f-k92rm 1/1 Running 0 44m 172.27.14.227 k8s-node02 <none> <none>
~~~ # 进入容器内部
[root@k8s-master01 kafka-exporter]# kubectl exec -ti kafka-exporter-d47b9f76f-k92rm -n monitoring -- sh
/ # nslookup kafka-0.kafka-headle