# Prometheus
All Prometheus notes →1 — Discovery Mechanisms
How Prometheus finds scrape targets — static configs, file-based service discovery with watched JSON files, and DNS service discovery via SRV/A records — plus validating and reloading configuration safely.
prometheus service-discovery book
Jul 18, 2026
2 — Kubernetes Discovery
Prometheus's native Kubernetes service discovery role (pod/service/endpoints/ingress) and how the Prometheus Operator's ServiceMonitor/PodMonitor/ScrapeConfig CRDs turn that into a declarative, per-namespace scrape contract.
prometheus service-discovery book
3 — Cloud Discovery
Cloud-provider and registry-based service discovery — AWS EC2, Azure VM/Container Apps, GCP, Consul, and Eureka — for scraping targets that don't live in a single static inventory.
prometheus service-discovery book