Simple server that scrapes Nginx vts stats and exports them via HTTP for Prometheus consumption
go get -v ./...
go build
nohup ./nginx-vts-exporter -nginx.scrape_uri=http://localhost/status/format/json
Build
docker build -t vts-export .
Run
docker run -ti vts-export
Run with args
docker run -ti vts-export -nginx.scrape_uri=http://localhost/status/format/json