Skip to content
 
 

Repository files navigation

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

About

Simple server that scrapes nginx stats and exports them via HTTP for Prometheus consumption

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages