Skip to content

Commit 2a25e3a

Browse files
committed
metrics ready to use
1 parent 1cf55c6 commit 2a25e3a

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
<groupId>org.springframework.boot</groupId>
2929
<artifactId>spring-boot-starter-web</artifactId>
3030
</dependency>
31+
<dependency>
32+
<groupId>org.springframework.boot</groupId>
33+
<artifactId>spring-boot-starter-actuator</artifactId>
34+
</dependency>
35+
<dependency>
36+
<groupId>io.micrometer</groupId>
37+
<artifactId>micrometer-registry-prometheus</artifactId>
38+
</dependency>
3139
<dependency>
3240
<groupId>org.springdoc</groupId>
3341
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>

src/main/resources/application.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ hacktoberfest:
1010

1111
github:
1212
token: ${GITHUB_TOKEN:}
13+
management:
14+
endpoints:
15+
web:
16+
exposure:
17+
include:
18+
- health
19+
- prometheus

0 commit comments

Comments
 (0)