Skip to content

Commit

Permalink
Add active health check feature
Browse files Browse the repository at this point in the history
  • Loading branch information
MarianConstantinMarica committed Nov 17, 2024
1 parent f2c1422 commit 618a396
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ spring:
config:
import: optional:configserver:${CONFIG_SERVER_URL:http://localhost:8888/}
cloud:
loadbalancer:
configurations: health-check
gateway:
routes:
- id: vets-service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ spring:
import: optional:configserver:${CONFIG_SERVER_URL:http://localhost:8888/}


management:
endpoints:
web:
exposure:
include: health


---
spring:
config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ spring:
profiles:
active: production

management:
endpoints:
web:
exposure:
include: health


---
spring:
config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ spring:
config:
import: optional:configserver:${CONFIG_SERVER_URL:http://localhost:8888/}

management:
endpoints:
web:
exposure:
include: health


---
spring:
Expand Down

0 comments on commit 618a396

Please sign in to comment.