discordianfish / nginx_exporter

Simple server that scrapes nginx stats and exports them via HTTP for Prometheus consumption
MIT License
160 stars 76 forks source link

Environment label and support for only exporting nginx stats #21

Closed nipuntalukdar closed 7 years ago

nipuntalukdar commented 7 years ago

I have added support for only exporting Nginx specific matrix and by default it will export only Nginx stats and won't export http handler and go run-time specific data. Also, it uses promhttp.Handler for exporting Nginx only stats. Added a label "environment" for separating stats from multiple Nginx servers (i.e. production, staging etc.)