Skip to content

v1.1.0 - New Metrics & Infrastructure

Choose a tag to compare

@abtreece abtreece released this 15 Jan 23:18
· 15 commits to main since this release

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_seconds tracks total request processing time per zone
  • SSL/TLS protocol tracking - nginx_server_zone_ssl_total tracks requests by SSL/TLS protocol version (TLSv1.2, TLSv1.3, etc.)

Docker Improvements

  • Added .dockerignore to reduce image size
  • Added OCI image labels (title, description, version, source, license)
  • Added HEALTHCHECK directive for container health monitoring

Deployment Examples

New examples/ directory with ready-to-use configurations:

  • docker-compose.yml - Complete stack with Prometheus and Grafana
  • prometheus.yml - Prometheus scrape configuration
  • nginx.conf.example - Production-ready NGINX configuration

Breaking Changes

  • Module namespace changed from stats.* to resty.ngxstats.*
  • Modules moved from lib/resty/*.lua to lib/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.0

Manual

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/

Full Changelog

v1.0.0...v1.1.0