Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 833 Bytes

File metadata and controls

42 lines (31 loc) · 833 Bytes

Nginx Exporter for Prometheus

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
}

Getting Started

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