Skip to content

Commit

Permalink
Feat: spring actuator health, metrics 허용 (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaewon-pro authored Sep 18, 2024
1 parent 4cee50b commit e5c59fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public class SecurityWebConfig {
private static final String[] READ_ONLY_ENDPOINTS = {
"/api/v1/examples/**", // TODO: Remove test endpoints
"/api/v1/servers/versions",
"/actuator/health",
"/actuator/metrics/**",
};

@Bean
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ weather:
url: https://api.weatherapi.com
api-key: ${WEATHERAPICOM_API_KEY}

management:
endpoints:
web:
exposure:
include: health, metrics

---
spring.config.activate.on-profile: local

Expand Down

0 comments on commit e5c59fc

Please sign in to comment.