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
Use a Config File:
./nginx_exporter -c ./config.json
{
"listening_address": "127.0.0.1:9100",
"metrics_endpoint": "/metrics",
"nginx_scrape_uri": "http://127.0.0.1:8080/nginx_status",
"insecure": true
}
- All of the core developers are accessible via the Prometheus Developers Mailinglist.
docker pull fish/nginx-exporter
docker run -d -p 9113:9113 fish/nginx-exporter \
-nginx.scrape_uri=http://172.17.42.1/nginx_status