knyar/nginx-lua-prometheus
Prometheus metric library for Nginx written in Lua observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3819
- days_rel: n/a
- days_push: 606
- n_releases_24m: 0
Adoption not part of the score
1562 stars · 236 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Lua library for Nginx (via ngx_lua/OpenResty) that tracks metrics like counters, gauges, and histograms and exposes them on a /metrics endpoint for Prometheus scraping. It lets you instrument request counts, latencies, and connection states directly in nginx.conf.
Use cases
- expose nginx metrics to prometheus
- track http request latency by server name
- count requests by status code in nginx
- monitor nginx connections with prometheus
- instrument openresty applications with prometheus metrics
- scrape nginx metrics endpoint
When to choose
- you run nginx or OpenResty with ngx_lua and want native Prometheus metrics without an exporter sidecar
- you need low-overhead per-request instrumentation inside nginx itself
- you want counters, gauges, and histograms with custom labels exposed on a scrape endpoint
When to avoid
- your nginx build lacks the ngx_lua module and you cannot add it
- you need metrics from non-Lua parts of your stack or other services
- you use a metrics backend other than Prometheus without conversion support
Facets
library · maturity stable
monitoring logging monitoring web-development backend lua self-hosted prometheus metrics nginx-lua observability instrumentation devops nginx openresty linux
1 source
- readme: https://github.com/knyar/nginx-lua-prometheus · fetched 2026-08-28 · 55631042b2a0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| knyar/nginx-lua-prometheus | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="knyar/nginx-lua-prometheus")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem