Skip to content

Commit

Permalink
Merge pull request Kernel360#81 from Hju95/Kernel360#76
Browse files Browse the repository at this point in the history
[setting] 모니터링 환경 세팅
  • Loading branch information
hodadako authored Jan 9, 2024
2 parents dc7b9f6 + ae3de6a commit f08efb0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ dependencies {
//AOP
implementation 'org.springframework.boot:spring-boot-starter-aop'

implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'

//Security
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public class SecurityConfig {
"/api/v1/auth/check/nickname",
"/api/v1/auth/signup",
"/api/v1/auth/login",
"/actuator",
"/actuator/**"

};

private final String[] hasAnyAuthorityPatterns = new String[] {
Expand Down
8 changes: 8 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,11 @@ custom:
image:
baseUrl: ${BASE_URL}

management:
endpoints:
web:
exposure:
include: prometheus, health, info, metrics
# observations:
# key-values:
# application: KS_SingleModule #태그

0 comments on commit f08efb0

Please sign in to comment.