Service discovery using “prometheus.io/*” annotations does not work out of the box in Kubernetes. It can be done with a custom “relabel_config” (https://gist.github.com/reachlin/a98b90afcbff4604c90c183a0169474f). In Kubernetes we need a custom ServiceMonitor: