Categorica open-sources a Prometheus exporter that runs inside NGINX itself
Native Prometheus Integration with Nginx
Categorica has open-sourced nginx-stats-prometheus, an MIT-licensed NGINX module that exposes Prometheus metrics directly from the server, so no sidecar exporter or separate web server is needed. It reports request counts, response classes, byte totals, connection states, and latency histograms, plus per-server and per-upstream stats. The trade-offs: fewer metrics than nginx-prometheus-exporter, a rebuild whenever NGINX is upgraded, and a 1 MB shared-memory cap that silently drops stats once full.
Metrics collection itself evades metrics collection, à la "who watches the watchmen".
- adamtulinius
Can’t help but think that nginx’s open core model is the reason nginx never got support for exporting Prometheus metrics on its own.
- jon128
The general circles around me have already moved on to reverse proxies implemented in Rust and there is talk about reverse proxies implemented in Lean 4.
But this native Prometheus Integration with nginx, this is going to be useful to many in DevOps-ish roles out there.