title: Monitor Spring Boot Apps using Prometheus on Kubernetes , not setting end Points
body: <p>I am Trying to monitor Spring Boot application using Prometheus on Kubernetes. Promethus was insatll using Helm and I am using Spring Boot Actuator for  Health checking, Auditing, Metrics gathering and Monitoring.</p>
  
  <p>Actuator gives details about application. For example</p>
  
  <p><code>http://**IP:Port**/actuator/health</code> return below output</p>
  
  <pre><code>{"status":"UP"}.
  </code></pre>
  
  <p>I use below configuration file to add the application end point in promethus.</p>
  
  <pre><code>apiVersion: monitoring.coreos.com/v1
  kind: ServiceMonitor
  metadata:
    name: scp-service-creator
    namespace: sc678
    labels:
      app: scp-service-creator
      release: prometheus-operator
  spec:
    selector:
      matchLabels:
        app: scp-service-creator
    endpoints:
    - port: api
      path: "/actuator/prometheus"
      scheme: http
      interval: 10s
      honorLabels: true
  </code></pre>
  
  <p>So my problem is even service is added to prometheus , no endpoint is assigned.
  So What would be wrong here. Really appreciate your help.</p>
  
  <p><a href="https://i.stack.imgur.com/DXato.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DXato.png" alt="targets in promethus"></a></p>
  
  <p><a href="https://i.stack.imgur.com/SBMBa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SBMBa.png" alt="service-discovery in promethus"></a></p>
  
  <p>Thank You.</p>