What's New
New Metrics
- Slow request tracking -
nginx_server_zone_slow_requests_totalcounts requests exceeding configurable threshold (default 1s) - Request size histogram -
nginx_server_zone_request_length_bytes_buckettracks request body size distribution with buckets from 100B to 100MB - Upstream health gauge -
nginx_upstream_healthprovides calculated health status (1=healthy, 0=unhealthy) based on failure rate threshold (default 10%)
Observability Examples
- Prometheus alerting rules - Pre-built alerting rules (
examples/prometheus-alerts.yml) covering availability, errors, latency, upstream health, connections, cache, rate limiting, SSL/TLS, and traffic anomalies - Grafana dashboard - Pre-built dashboard (
examples/grafana-dashboard.json) with overview, request, latency, upstream, connection, and SSL/TLS panels
Installation
luarocks install lua-resty-ngxstatsOr with Docker:
docker pull ghcr.io/abtreece/lua-resty-ngxstats:v1.2.0See CHANGELOG.md for full details.