Skip to content

v1.2.0

Latest

Choose a tag to compare

@abtreece abtreece released this 16 Jan 01:45
· 2 commits to main since this release

What's New

New Metrics

  • Slow request tracking - nginx_server_zone_slow_requests_total counts requests exceeding configurable threshold (default 1s)
  • Request size histogram - nginx_server_zone_request_length_bytes_bucket tracks request body size distribution with buckets from 100B to 100MB
  • Upstream health gauge - nginx_upstream_health provides 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-ngxstats

Or with Docker:

docker pull ghcr.io/abtreece/lua-resty-ngxstats:v1.2.0

See CHANGELOG.md for full details.