# Categorica open-sources a Prometheus exporter that runs inside NGINX itself

Original title: Native Prometheus Integration with Nginx

> Hacker News story 50213502 · language: en · submitted 2026-10-23
> Web version: https://zeli.app/story/50213502
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 53 · by [foxhill](<https://news.ycombinator.com/user?id=foxhill>) · 💬 16
[original](<https://categorica.io/blog/2026.10.16_nginx-stats-prometheus/>) · [HN discussion](<https://news.ycombinator.com/item?id=50213502>)

## Summary

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.

## Key quote

> Metrics collection itself evades metrics collection, à la "who watches the watchmen".

## HN discussion (16 comments)

### [adamtulinius](<https://news.ycombinator.com/item?id=50252091>)

> 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](<https://news.ycombinator.com/item?id=50252108>)

> 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.

---

## Cite

- Page: https://zeli.app/story/50213502
- Date: 2026-10-23
- Source: categorica.io (https://categorica.io/blog/2026.10.16_nginx-stats-prometheus/)
- Hacker News: https://news.ycombinator.com/item?id=50213502

## Other languages

- zh: https://zeli.app/zh/story/50213502 · markdown: https://zeli.app/zh/story/50213502.md
- ja: https://zeli.app/ja/story/50213502 · markdown: https://zeli.app/ja/story/50213502.md
- ko: https://zeli.app/ko/story/50213502 · markdown: https://zeli.app/ko/story/50213502.md
- de: https://zeli.app/de/story/50213502 · markdown: https://zeli.app/de/story/50213502.md
- es: https://zeli.app/es/story/50213502 · markdown: https://zeli.app/es/story/50213502.md
- ru: https://zeli.app/ru/story/50213502 · markdown: https://zeli.app/ru/story/50213502.md
