Skip to content

Commit

Permalink
feat: #157 스프링 애플리케이션 메트릭 모니터링 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
jaewonLeeKOR committed Sep 16, 2024
1 parent 550453a commit 9fae035
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ dependencies {
// webflux
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'io.netty:netty-resolver-dns-native-macos:4.1.68.Final:osx-aarch_64'
// actuator
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'
}

dependencyManagement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// 경로별 인가 //TODO Role 분리 필요
http
.authorizeHttpRequests((auth) -> auth
.requestMatchers(HttpMethod.GET, "/swagger-ui/**", "/api-docs/**").permitAll()
.requestMatchers(HttpMethod.GET, "/swagger-ui/**", "/api-docs/**", "/actuator", "/actuator/**").permitAll()
.requestMatchers("/members/sign-in","/members/sign-up", "/members/local-sign-in", "/token/**", "/members/email/check", "/members/nickname/check", "/members/email/certification", "/members/email/certification/check").permitAll()
.requestMatchers("/admin/**", "/members/email/whitelist/register").hasRole(Role.ROLE_ADMIN.getName())
.requestMatchers("/answers","/answers/**").authenticated()
Expand Down

0 comments on commit 9fae035

Please sign in to comment.