Download Repack — Nginx-prometheus-exporter Binary
sudo systemctl daemon-reload sudo systemctl enable --now nginx-exporter Use code with caution. Key Configuration Flags
sudo useradd --system --no-create-home --shell /bin/false nginx-exporter Use code with caution. nginx-prometheus-exporter binary download
The exporter requires NGINX to have the stub_status module enabled. Add the following to your NGINX configuration (usually in /etc/nginx/conf.d/status.conf ): Add the following to your NGINX configuration (usually
Binaries are provided for multiple operating systems including Linux (amd64, arm64, armv7), macOS , and Windows . Alternative Package Managers: macOS (Homebrew): brew install nginx-prometheus-exporter . Linux (Snap): snap install nginx-prometheus-exporter . Windows (Scoop): scoop install nginx-prometheus-exporter . Step-by-Step Binary Installation on Linux Windows (Scoop): scoop install nginx-prometheus-exporter
[Unit] Description=NGINX Prometheus Exporter After=network.target [Service] User=nginx-exporter Group=nginx-exporter ExecStart=/usr/local/bin/nginx-prometheus-exporter \ --nginx.scrape-uri=http://127.0.0.1:8080/stub_status \ --web.listen-address=:9113 Restart=always [Install] WantedBy=multi-user.target Use code with caution.
For production environments, it is recommended to run the exporter as a background service using systemd .
The is an essential tool for converting NGINX status information into a format that Prometheus can scrape and visualize. While many users opt for Docker, downloading and running the binary directly is a lightweight, efficient choice for standalone Linux servers or custom deployments. Official Binary Download Links