Prometheus Deep Dive Part 5: Service Discovery

Prometheus needs to know where to scrape metrics. In static environments, you list targets manually. In dynamic environments (Kubernetes, cloud, service mesh), targets appear and disappear constantly — requiring automated discovery: