Reverse-Engineering PromQL Usage: A Proxy’s Tale
summary
A tiny Go proxy named PromAnalytics sits between clients and Prometheus/Tanos, logs PromQL expressions, stores query fingerprints and sample counts in Postgres/SQLite, and adds a metric catalog by ingesting metric-usage reports from metric-usage. The proxy can run as an ingestor proxy on OTLP, perform dry-run checks and drop unused series before forwarding, and it proves real savings — about 700k yearly and roughly 10 TB of metrics per day removed in one deployment.
AI-written summary · about
chapters (15)
- 0:00Welcome and Setup
- 0:15The Query Blind Spot
- 0:50Who Am I
- 1:35Why Queries Break Systems
- 3:49Existing Tools and Gaps
- 6:11Building PromAnalytics
- 7:14Architecture and Data Model
- 9:07UI Demo System Health
- 11:59Finding Costly Queries
- 15:06Adding Metrics Usage Context
- 17:12Metrics Catalog Demo
- 19:42Dropping Unused Metrics
- 21:29Ingestor Proxy Demo
- 24:25Savings and Real World Impact
- 25:45Roadmap and Wrap Up
