https://blog.51cto.com/536410/2350106
https://github.com/danielqsj/kafka_exporter
部署kafka-exporter,然后去试下监听端口有没有数据
docker run -ti --rm -p 9308:9308 danielqsj/kafka-exporter --kafka.server=kafka:9092 [--kafka.server=another-server ...]
添加prometheus job
- job_name: kafka-test static_configs: - targets: ['ip:9308'] labels: instance: kafka-测试环境
添加grafana图表