Expose Prometheus metrics (#355)
This commit is contained in:
7
pom.xml
7
pom.xml
@@ -317,6 +317,13 @@
|
||||
<version>${spring_boot_version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- https://mvnrepository.com/artifact/io.micrometer/micrometer-registry-prometheus -->
|
||||
<dependency>
|
||||
<groupId>io.micrometer</groupId>
|
||||
<artifactId>micrometer-registry-prometheus</artifactId>
|
||||
<version>1.8.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.zaxxer</groupId>
|
||||
<artifactId>HikariCP</artifactId>
|
||||
|
||||
@@ -4,7 +4,7 @@ management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: "health"
|
||||
include: "health,prometheus"
|
||||
spring:
|
||||
main:
|
||||
allow-circular-references: true
|
||||
|
||||
Reference in New Issue
Block a user