Scraping SpringBoot actuator/prometheus metrics endpoint in an Istio environment

11/21/2019

I have developed a couple of microservices using SpringBoot, has exposed some custom metrics using Micrometer which are available at /actuator/prometheus endpoint. I tested the application locally with docker prometheus container with scrape config pointing to the endpoint and its showing the metrics.

Now I have deployed it into kubernetes in GKE (version 1.14.7-gke.23) with Istio (version 1.4.0) enabled using the demo profile. But the prometheus that comes with istio is not scraping the SpringBoot /actuator/prometheus endpoint. I took queues from this link "https://preliminary.istio.io/faq/metrics-and-logs/#prometheus-application-metrics" and added the annotations to the Deployments but to no avail.

Help requested on how to get this working... Thanks

-- Krishna Kumar
google-kubernetes-engine
istio
kubernetes
prometheus
spring-boot

0 Answers