Migrating to Prometheus at Fastly
summary
Fastly migrates from Ganglia and a partial Datadog rollout to Prometheus as primary monitoring, stamping a pair of Prometheus instances into each POP to scale with 51 global POPs. Service discovery uses a sidecar plus per-host proxy (internal "Promesty") that builds file SD JSON, with TLS mutual auth via Ghost Tunnel and a single exporter port per host. Current footprint is 114 servers globally, roughly 28.4 million time series and about 2.2M samples/sec; retention is 60–90 days and Thanos is under evaluation. Challenges: ad hoc metric breadth exploration and complex Alertmanager routing.
AI-written summary · about
chapters (16)
- 0:00Introduction to Fastly and monitoring
- 1:14Limitations of Ganglia monitoring
- 3:59Struggles with SaaS and parallel systems
- 6:05Goals for a new monitoring system
- 8:12Why Prometheus was chosen
- 9:16Building the proof of concept
- 10:40Fastly's Prometheus infrastructure
- 12:44Securing Prometheus with TLS
- 14:09Custom service discovery system
- 16:34How the sidecar and proxy work
- 18:40Service stack on individual Prometheus servers
- 20:45Achievements with Prometheus
- 21:48Prometheus adoption at Fastly
- 25:14Rough edges and challenges
- 28:21Long-term storage and Thanos
- 28:42Conclusion and thanks
