Skip to content

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

License

Notifications You must be signed in to change notification settings

nyodas/nginx_exporter

 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 91.7%
  • Makefile 8.3%