Simple server that scrapes nginx stats and exports them via HTTP for Prometheus consumption
Switch branches/tags
Nothing to show
Clone or download
fffonion and discordianfish Fix nginx_exporter_test (#38)
Change metricCount to 8, metrics being collected:

- nginxUp * 1
- currentConnections * 4
- processedConnections * 3

Not visible in test case:
- scrapeFailures * 1
Latest commit fcc4ff9 Aug 31, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dockerignore Lock dependencies (#33) Jan 8, 2018
.gitignore Lock dependencies (#33) Jan 8, 2018
Dockerfile Lock dependencies (#33) Jan 8, 2018
Gopkg.lock Lock dependencies (#33) Jan 8, 2018
Gopkg.toml Lock dependencies (#33) Jan 8, 2018
LICENSE Add LICENSE Jun 10, 2015
README.md Update README.md Aug 28, 2018
nginx_exporter.go Add simple health check (#37) Aug 27, 2018
nginx_exporter_test.go Fix nginx_exporter_test (#38) Aug 31, 2018

README.md

Nginx Exporter for Prometheus

This Prometheus Exporter retrieves nginx stats and exports them via HTTP for Prometheus consumption.

To run it:

./nginx_exporter [flags]

Help on flags:

./nginx_exporter --help

Using Docker

docker pull fish/nginx-exporter

docker run -d -p 9113:9113 fish/nginx-exporter \
    -nginx.scrape_uri=http://172.17.42.1/nginx_status

In production you should use a tagged release: https://hub.docker.com/r/fish/nginx-exporter/tags/

Alternatives

While nginx natively only provides the small set of metrics this exporter provides, nginx-module-vts adds extensive metrics that can be consumed by: