Dealing with Metrics at Scale at GitLab
summary
Prometheus usage grows from one server with ~2,000 metric names and ~250k series to a federated Thanos setup with ~40 Prometheus nodes, ~80,000 metric names, ~5M series and ~10M samples/sec; alert rules balloon from 24 to 280 and dashboards from 21 to 431. Problems: noisy, senescent alerts and brittle dashboards. Solutions: adopt four golden signals (optics/apdex, traffic, errors, saturation), move to multi‑window SLO burn‑rate alerting, and generate recording rules and dashboards from a JSONnet metrics catalog.
AI-written summary · about
chapters (22)
- 0:00Introduction to scaling metrics
- 2:30Problems with old alerting approach
- 9:11Key resources for scalable monitoring
- 10:17Goals for improving monitoring stack
- 10:58Four golden signals for monitoring
- 13:26Explaining Apdex scoring method
- 15:12Improving alert quality with SLOs
- 18:38Challenges with SLO alerting
- 20:44Multi-burn rate SLO alerting solution
- 22:10Need for automation in monitoring
- 23:13Introducing metrics catalog concept
- 25:25JSONnet for generating configurations
- 27:56Generating Grafana dashboards
- 32:39Key takeaways and conclusions
- 34:04Q&A: Apdex and error handling
- 35:27Q&A: Dependency chain generation
- 37:36Q&A: Proactive saturation monitoring
- 39:01Q&A: Public dashboards and security
- 40:49Q&A: Single source of truth
- 41:54Q&A: Alerting tools and deployment markers
- 43:43Q&A: Customer notifications and status pages
- 45:13Closing remarks
