tokuhirom's blog

spring boot 2RC2 で prometheus を actuator で export させるやり方

    compile("org.springframework.boot:spring-boot-starter-actuator")
    compile("io.micrometer:micrometer-registry-prometheus")

を build.gradle に追加

management:
  endpoint:
    prometheus:
      enabled: true
  endpoints:
    web:
      exposure:
        include: info,health,prometheus

を設定に追加。

Created: 2018-02-25 14:13:43 +0000
Updated: 2018-02-25 14:13:43 +0000