Skip to content

Commit

Permalink
feat: actuator 추가 (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
gusah009 authored May 4, 2024
1 parent 79b6c10 commit 6fdbd94
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-mail")
implementation("com.github.gavlyukovskiy:p6spy-spring-boot-starter:1.8.1")
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.boot:spring-boot-starter-actuator")

asciidoctorExt("org.springframework.restdocs:spring-restdocs-asciidoctor")

Expand All @@ -96,6 +97,7 @@ dependencies {
developmentOnly("org.springframework.boot:spring-boot-devtools")

runtimeOnly("com.mysql:mysql-connector-j")
runtimeOnly("io.micrometer:micrometer-registry-prometheus")

testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.restdocs:spring-restdocs-mockmvc")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class SecurityConfiguration {
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests()
.requestMatchers("/docs/**", "/keeper_files/**", "/auth-test", "/sign-up/**", "/error",
"/about/**", "/sign-in/**", "/posts/recent", "/posts/trend")
"/about/**", "/sign-in/**", "/posts/recent", "/posts/trend", "/keeper-metrics/**")
.permitAll()
.anyRequest().hasRole("회원")
.and()
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ decorator:
datasource:
p6spy:
enable-logging: true
management:
endpoints:
web:
base-path: /keeper-metrics
exposure:
include: prometheus

0 comments on commit 6fdbd94

Please sign in to comment.