danielqsj / kafka_exporter

Kafka exporter for Prometheus
Apache License 2.0
2.09k stars 602 forks source link

add noonroot in containers #410

Closed zhangguanzhang closed 8 months ago

zhangguanzhang commented 8 months ago
# docker top 314
UID                 PID                 PPID                C                   STIME               TTY                 TIME                CMD
nfsnobo+            22847               22803               0                   14:57               ?                   00:00:00            /bin/kafka_exporter --kafka.server=localhost:9092
# curl -s localhost:9308/metrics | grep -m3 kafka
# HELP kafka_brokers Number of Brokers in the Kafka Cluster.
# TYPE kafka_brokers gauge
kafka_brokers 1

@danielqsj PTAL

zhangguanzhang commented 8 months ago

@danielqsj

danielqsj commented 8 months ago

LGTM, Thanks @zhangguanzhang