Skip to content

Commit

Permalink
모니터링 환경 구축 (#68)
Browse files Browse the repository at this point in the history
* chore: Actuator,Prometheus 의존성 추가

* chore: Actuator 설정 정보 추가

* feat: /actuator/** 경로 허용
  • Loading branch information
leesewon00 authored Aug 23, 2024
1 parent 7cf69cd commit 16821b9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ dependencies {//todo: 안쓰는 의존성이나 deprecated된 의존성 제거
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
testImplementation "org.mockito:mockito-core:3.3.3"
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'

compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
"/file/profile/pre",
"/auth/kakao", "/auth/sign-up", "/auth/reissue",
"/university/detail/**", "/university/search/**", "/university/recommends",
"/swagger-ui/**", "/v3/api-docs/**"
"/swagger-ui/**", "/v3/api-docs/**",
"/actuator/**"
)
.permitAll()
.anyRequest().authenticated())
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 @@ -48,3 +48,9 @@ view:
count:
scheduling:
delay: 3000

management:
endpoints:
web:
exposure:
include: prometheus

0 comments on commit 16821b9

Please sign in to comment.