QueryLens is a local observability stack for PostgreSQL query performance.
It collects query telemetry, fingerprints normalized SQL, captures safe plan snapshots, and flags deterministic regressions. The system also includes idempotent ingestion, bounded retries, and DLQ handling so failures stay visible.
flowchart LR
A[(PostgreSQL)] --> B[C++ telemetry collector]
B --> C[(Kafka / Redpanda topics)]
C --> D[FastAPI consumer + regression engine]
D --> E[(PostgreSQL query storage)]
D --> F[React dashboard]
D --> G[Prometheus / Grafana]
- SQL normalization and fingerprinting
- Vector operator detection
- Safe EXPLAIN gating
- Kafka-backed telemetry ingestion
- Regression classification
- Prometheus metrics and Grafana dashboards
- Demo, benchmark, and evaluation workflows
- Exactly-once delivery guarantees
- Kubernetes manifests
- gRPC APIs
- Managed cloud deployment
make setup
make build
make up
make migrate
make seed
make test
make demomake benchmark N=10000
make benchmark N=50000
make benchmark-100k
make regression-eval- Query-specific deterministic recommendations live in
docs/RECOMMENDATIONS.md - The query detail page surfaces the latest rule-based suggestions beside plan and metric history
Built a PostgreSQL observability platform that streams telemetry, detects regressions deterministically, and provides reproducible evaluation and monitoring workflows end to end.
- Architecture and evaluation: docs/PORTFOLIO_PROOF.md
- Benchmark artifacts: docs/BENCHMARKS.md
- Recommendations: docs/RECOMMENDATIONS.md
- Demo and local mode: use the repo
maketargets documented above - Test commands: backend pytest, frontend
npm run build - Evidence: regression evaluation docs under
docs/