Skip to content

Commit

Permalink
[feat #135] 프로메테우스 설정 (#136)
Browse files Browse the repository at this point in the history
* chore: 프로메테우스 설정

* chore: 프로메테우스 설정
  • Loading branch information
jimin3263 authored Aug 25, 2024
1 parent edadf68 commit 50a69b5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
echo "${{ secrets.OUT_WEB_YML }}" > ./adapters/out-web/src/main/resources/application-out-web.yml
mkdir -p ./application/src/main/resources
echo "${{ secrets.APPLICATION_CORE }}" > ./application/src/main/resources/application-core.yml
mkdir -p ./adapters/in-web/src/main/resources
echo "${{ secrets.APPLICATION_IN_WEB_YML }}" > ./application/src/main/resources/application-in-web.yml
- name: Build with Gradle
run: ./gradlew :entry:web:build --no-daemon
Expand Down
1 change: 1 addition & 0 deletions adapters/in-web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies {
// 라이브러리
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("io.micrometer:micrometer-registry-prometheus")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.data:spring-data-commons")
implementation("org.springframework.boot:spring-boot-starter-validation")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class SecurityConfig(
"/swagger-ui/**",
"/api-docs",
"/api-docs/**",
"/v3/api-docs/**"
"/v3/api-docs/**",
"/actuator/prometheus",
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class CustomAuthenticationFilter(
"/swagger-ui/**",
"/api-docs",
"/api-docs/**",
"/v3/api-docs/**"
"/v3/api-docs/**",
"/actuator/prometheus",
)
val path = request.requestURI
val shouldNotFilter =
Expand Down
2 changes: 1 addition & 1 deletion entry/web/src/main/kotlin/com/pokit/WebApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import org.springframework.boot.runApplication
class WebApplication

fun main(args: Array<String>) {
System.setProperty("spring.config.name", "application-out-web, application-core, application-out-persistence")
System.setProperty("spring.config.name", "application-out-web, application-core, application-out-persistence, application-in-web")
runApplication<WebApplication>(*args)
}

0 comments on commit 50a69b5

Please sign in to comment.