{"repo":"Lax/traffic-accounting-nginx-module","free":true,"listed":false,"github":"https://github.com/Lax/traffic-accounting-nginx-module","clone":"git clone https://github.com/Lax/traffic-accounting-nginx-module.git","description":"Monitor the incoming and outgoing traffic metrics in realtime for NGINX","language":"C","stars":288,"topics":["nginx","traffic-metrics","realtime","observability","traffic-accounting"],"license":"BSD-2-Clause","category":"analytics","readme_excerpt":"traffic-accounting-nginx-module Monitor the incoming and outgoing traffic metrics in realtime for NGINX . Now accounting module supports both HTTP and STREAM subsystems A realtime traffic and status code monitor solution for NGINX, which needs less memory and cpu than other realtime log analyzing solutions. Useful for traffic accounting based on NGINX config logic (by location / server / user-defined-variables). Why? Realtime log analysis solutions, which requires multiple machines for storage and analysis, are too heavy for application monitoring. An cost-effective solution is in need to monitor the traffic metrics/status of application requests. This solution should be accurate, sensitive, robust, light weight enough, and not affected by traffic peaks. How it works? This module keeps a list of metrics identified by accounting id in its context. When a new request hits the server, the module will try to find its accounting id , calculate statistics, and aggregate them into the corresponding metrics by accounting id . For each time period (defined by interval ), a timer event is triggered, those metrics are rotated and exported to log files or sent to remote log servers. --- Quickstart Download pre-build binaries from Releases, place them into ./modules sub-directory of nginx . Add following lines at the beginning of nginx.conf : Reload nginx config with nginx -s reload . Done! Alternatively, you can install this module manually with the Nginx source, see the installation ins","default_branch":null,"files":null,"tree":[],"storefront":"/r/Lax","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Lax/traffic-accounting-nginx-module/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."}