# Nginx Prometheus Exporter

Nginx Prometheus Exporter is a metrics exporter that exposes NGINX or NGINX Plus traffic, performance, and health data in a Prometheus-compatible format, helping self-hosters monitor and troubleshoot their web server. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5506/nginx-prometheus-exporter

## Description

Nginx Prometheus Exporter is a metrics exporter that exposes NGINX or NGINX Plus traffic, performance, and health data in a Prometheus-compatible format, helping self-hosters monitor and troubleshoot their web server.

## Platform availability

Available on 0 of 10 platforms.

## Health score

71/100 (Good), based on 4 of 5 factors.
- Maintained: 86 (last commit 4 days ago)
- Popular: 66 (2,026 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 94 (no serious findings, CI, tests, OpenSSF Scorecard 8.4/10)

## Links

- GitHub: https://github.com/nginx/nginx-prometheus-exporter
- Docker Hub: https://hub.docker.com/r/nginx/nginx-prometheus-exporter

## Common questions

### How can I install the exporter on Linux?

You can install it with snap using the command sudo snap install nginx-prometheus-exporter.

### Which NGINX endpoint provides basic metrics?

Basic NGINX metrics are exposed via the stub_status page, while NGINX Plus provides richer metrics via its API.

### Is the Unix socket scrape option documented?

The community thread highlights that documentation for using --nginx.scrape-uri with a Unix socket is missing.

### What port mapping should I use for a containerized NGINX that an exporter must reach?

Map the container’s web port to the host, for example -p 8080:80. Without that mapping, the exporter may not be able to reach NGINX.

## Alternatives

- Apache HTTP Server: Open-source HTTP server offering cross-platform support, modular architecture, secure configuration, robust content delivery, and extensive…
- BunkerWeb: BunkerWeb is a self-hosted, open-source web application firewall and NGINX-based web server that protects services with secure-by-default s…
- Caddy: Caddy is an extensible web server and reverse proxy that serves Transport Layer Security (TLS) by default, making it simple to secure and r…
- Corvus: Self-hosted reverse proxy and web application firewall with a web console; it provides domain forwarding, free SSL, live traffic monitoring…
- Haproxy: HAProxy is a TCP proxy and a HTTP reverse proxy.
- Microsoft IIS: Internet Information Services (IIS) for Windows® Server is a flexible, secure and easy-to-manage Web server for hosting anything on the Web.
- Træfik Proxy: The Cloud Native Application Proxy Simplify networking complexity while designing, deploying, and operating applications.
- Varnish: Varnish is an open-source HyperText Transfer Protocol (HTTP) accelerator for website operators that serves cached pages from memory in fron…
- lighttpd: Lighttpd is a secure, lightweight web server that uses memory and CPU more efficiently than comparable servers, with FastCGI, CGI, authenti…
- nginx: Nginx is an HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy, and mail proxy server.
- nginx-ui

---
Source: Our Local Host (https://ourlocalhost.com/app/5506/nginx-prometheus-exporter), the self-hosted and open-source app directory.
