Service discovery automatically identifies application services and their network locations. In a Kubernetes monitoring deployment, Prometheus uses it to find applications whose metrics can be scraped, allowing newly deployed services to enter monitoring without manually listing each target. section 3.5
Annotated metrics service
A pod declares prometheus.io/scrape: 'true', prometheus.io/path: '/metrics', and prometheus.io/port: '80'. Prometheus discovers the pod, scrapes its application metrics, and makes them available for PromQL queries and Grafana dashboards. section 3.5






