Repository navigation
v1.1.0 - New Metrics & Infrastructure
What's New
This release adds new metrics, improves Docker infrastructure, and restructures the project to follow lua-resty-* conventions for LuaRocks compatibility.
New Metrics
- Request timing -
nginx_server_zone_request_time_secondstracks total request processing time per zone - SSL/TLS protocol tracking -
nginx_server_zone_ssl_totaltracks requests by SSL/TLS protocol version (TLSv1.2, TLSv1.3, etc.)
Docker Improvements
- Added
.dockerignoreto reduce image size - Added OCI image labels (title, description, version, source, license)
- Added
HEALTHCHECKdirective for container health monitoring
Deployment Examples
New examples/ directory with ready-to-use configurations:
docker-compose.yml- Complete stack with Prometheus and Grafanaprometheus.yml- Prometheus scrape configurationnginx.conf.example- Production-ready NGINX configuration
Breaking Changes
- Module namespace changed from
stats.*toresty.ngxstats.* - Modules moved from
lib/resty/*.luatolib/resty/ngxstats/
If you were requiring modules directly (unlikely for most users), update your requires:
-- Before
local common = require "stats.common"
-- After
local common = require "resty.ngxstats.common"LuaRocks
This release includes a proper .rockspec file for LuaRocks distribution.
Installation
Docker
docker pull ghcr.io/abtreece/lua-resty-ngxstats:v1.1.0Manual
git clone https://github.com/abtreece/lua-resty-ngxstats.git
cd lua-resty-ngxstats
git checkout v1.1.0
cp -r lib/resty /path/to/openresty/lualib/