{"repo":"blind-oracle/nginx-prometheus","free":true,"listed":false,"github":"https://github.com/blind-oracle/nginx-prometheus","clone":"git clone https://github.com/blind-oracle/nginx-prometheus.git","description":"Turn Nginx logs into Prometheus metrics","language":"Go","stars":43,"topics":["nginx","golang","prometheus","log","parser","syslog"],"license":"MPL-2.0","category":"analytics","readme_excerpt":"Nginx log parser and Prometheus exporter This service parses incoming syslog messages from Nginx sent over UDP or TCP and converts them into Prometheus metrics exported through the built-in HTTP server. - If the prefix-list is specified then per-URI statistics are generated. Using this feature without URI-prefix list is dangerous because it leads to an unbounded memory usage. It's therefore enabled only with a limited prefix list. The URI prefix list is a plain-text file with a single prefix per line, e.g. URIs received from nginx are stripped of any query parameters - only the part before '?' is used. - It optionally supports country lookup for client IPs using MaxMind GeoIP database. Nginx configuration snippet Getting it Using Docker (recommended) Or use docker-compose.yml from the repository. Using RPM/DEB packages Get RPM & DEB from releases, linux-amd64 only. Build from source Requires Go 1.25+. Usage example If you're using RPM/DEB packages then options are set in /etc/default/nginx-prometheus - debug — печатает каждое полученное syslog-сообщение (по умолчанию false) - listenSyslog — ip:port для приёма UDP syslog-сообщений (по умолчанию 0.0.0.0:1514) - listenSyslogTCP — ip:port для приёма TCP syslog-сообщений (по умолчанию отключено) - listenHTTP — ip:port для HTTP-запросов от Prometheus (по умолчанию 0.0.0.0:11080) - geoipCountryDB — путь к базе MaxMind GeoIP Country (опционально) - uriPrefixFile — путь к файлу со списком URI-префиксов (опционально) Grafana dashboard ","default_branch":null,"files":null,"tree":[],"storefront":"/r/blind-oracle","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/blind-oracle/nginx-prometheus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}