File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ dependencies {
6060 implementation ' org.springframework.boot:spring-boot-starter-security'
6161 implementation ' org.springframework.boot:spring-boot-starter-oauth2-resource-server'
6262
63+ // Metrics
64+ implementation ' org.springframework.boot:spring-boot-starter-actuator'
65+ runtimeOnly ' io.micrometer:micrometer-registry-prometheus'
66+
6367 testImplementation ' org.springframework.security:spring-security-test'
6468}
6569
Original file line number Diff line number Diff line change 11server :
22 port : ${PORT}
33
4+ # Metrics run on their own port so the public app port never serves /actuator.
5+ # The app SecurityFilterChain does not guard the management context, so
6+ # MANAGEMENT_PORT must stay reachable only from the Prometheus host.
7+ management :
8+ server :
9+ port : ${MANAGEMENT_PORT:8081}
10+ endpoints :
11+ web :
12+ exposure :
13+ include : health,prometheus
14+ metrics :
15+ tags :
16+ application : ${spring.application.name}
17+
418spring :
519 application :
620 name : word-online-matching
You can’t perform that action at this time.
0 commit comments