Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.59 KB

File metadata and controls

55 lines (35 loc) · 1.59 KB

How to monitor custom SpringBoot app metrics using PCF Metrics 1.6?

  • Enable Metric Registrar in Ops Manager > PAS > Settings > Metrics Registrar

Refer: Configure PAS - Metric Registrar

Note other configurabled fields:

  • Endpoint scraping interval min: 15, max: 600 = 35
  • Blocked tags: deployment,job,index,id I removed id from blocked tags, reason discussed later below.

PAS Metrics Registrar Configuration

  • Changes required in SpringBoot app are

    • pom.xml

Assuming actuator is enabled already, include micrometer prometheus endpoints

<!-- Micrometer Prometheus registry -->
<dependency>
  <groupId>io.micrometer</groupId>
  <artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
  • application.yml

Change required to expose prometheus end point

management:
  endpoints:
    web:
      exposure:
        include: "prometheus,health"

Refer: Register endpoint

Next > Customize PCF Metrics 1.6x

Back to Table of Content