This is a simple server that periodically scrapes nginx stats and exports them via HTTP for Prometheus consumption.
To run it:
./nginx_exporter [flags]
Help on flags:
./nginx_exporter --help
docker pull fish/nginx-exporter
docker run -d -p 9113:9113 fish/nginx-exporter \
-nginx.scrape_uri=https://172.17.42.1/nginx_status
In production you should use a tagged release: https://hub.docker.com/r/fish/nginx-exporter/tags/
While nginx natively only provides the small set of metrics this exporter provides, nginx-module-vts adds extensive metrics that can be consumed by:
- Standalone Prometheus Exporter: https://github.com/hnlq715/nginx-vts-exporter
- Kubernetes NGINX Ingres controller: https://github.com/kubernetes/ingress-nginx/blob/master/docs/examples/customization/custom-vts-metrics-prometheus/README.md