Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 614 Bytes

README.md

File metadata and controls

40 lines (33 loc) · 614 Bytes

nginx-vts-exporter

Simple server that scrapes Nginx vts stats and exports them via HTTP for Prometheus consumption

Dependency

Compile

go get -v ./...
go build

Run

nohup ./nginx-vts-exporter -nginx.scrape_uri=http://localhost/status/format/json

Dockerize

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