Implementing a Cooperative Multi-Tenant Capable Prometheus
summary
A centrally managed Prometheus setup that adds multi-tenancy without patching Prometheus, using an HTTP auth proxy called promsproxy to inject a per-user tenancy label (defaulting to the job label) by parsing PromQL AST and inserting labels into vector/matrix selectors, rewriting alert rules and silences, and rejecting invalid rules. It uses file-based service discovery via SSH drop-in folders, an blackbox exporter for probes, nginx for TLS, supports basic auth and Ansible, and runs cooperatively on low‑memory hosts.
AI-written summary · about
chapters (10)
- 0:00Introduction to multi-tenant Prometheus
- 1:34Target audience and requirements
- 2:38System requirements overview
- 4:03Getting data into Prometheus
- 7:13Querying with multi-tenancy
- 9:47Alerting with multi-tenancy
- 12:20System architecture overview
- 13:25Black box exporter integration
- 15:36Features and limitations
- 17:27Q&A session
