Skip to content

Commit

Permalink
[chore] 메트릭 설정 (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin3263 authored Aug 25, 2024
1 parent 50a69b5 commit 3b6070b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/batch-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,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-batch/src/main/resources
echo "${{ secrets.APPLICATION_IN_BATCH_YML }}" > ./application/src/main/resources/application-in-batch.yml
- name: Build with Gradle
run: ./gradlew :entry:batch:build --no-daemon
Expand Down
1 change: 1 addition & 0 deletions adapters/in-batch/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-batch")
implementation("org.springframework.boot:spring-boot-starter-quartz")
implementation("com.navercorp.spring:spring-boot-starter-batch-plus-kotlin:1.1.0")
Expand Down
2 changes: 1 addition & 1 deletion entry/batch/src/main/kotlin/com/pokit/BatchApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ import org.springframework.scheduling.annotation.EnableScheduling
class BatchApplication

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-batch")
runApplication<BatchApplication>(*args)
}

0 comments on commit 3b6070b

Please sign in to comment.