go build -o nsq-prometheus-exporter main.go
- docker build & docker run
docker build -t nsq-prometheus-exporter .
docker run -p 9527:9527 nsq-prometheus-exporter -nsq.lookupd.address=192.168.31.1:4161,192.168.31.2:4161
- use an official image
docker run -p 9527:9527 whoisyourdady/nsq-prometheus-exporter:latest -nsq.lookupd.address=192.168.31.1:4161,192.168.31.2:4161
./nsq-prometheus-exporter -nsq.lookupd.address=192.168.31.1:4161,192.168.31.2:4161