[Batch] : 모니터링 스택 도입 + 불필요 모듈/Gradle Wrapper 정리#17
Merged
userjin2123 merged 3 commits intomainfrom Jan 13, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 요약
배치 모니터링 환경을 Prometheus + Pushgateway + Grafana로 구성하고, 배치 애플리케이션에서 Micrometer 메트릭을 Pushgateway로 push하도록 추가했습니다.
또한 모니터링 전용 모듈(
monitor) 및 불필요한 Gradle Wrapper 파일을 정리했습니다.변경 사항
1) 모니터링 스택 도커 구성 추가
docker-compose.yml신규 추가depends_on)monitoring-net2) Prometheus 스크랩 설정 추가
prometheus/prometheus.yml신규 추가prometheus:9090자체 스크랩pushgateway:9091스크랩 (honor_labels: true)3) 배치 메트릭 수집 + Pushgateway 전송(기존 변경 포함)
BatchMetricsService추가 (saved/new/duplicate counter)PrometheusPushGatewayConfig추가PrometheusMeterRegistry.scrape()결과를 Pushgateway로 주기 pushapplication.yml에 management/prometheus/pushgateway 설정 통합8081,0.0.0.0health,info,prometheus4) 프로젝트 정리
gradle/wrapper/gradle-wrapper.propertiesgradlewgradlew.batgradle/wrapper/gradle-wrapper.jar(binary 제거)monitor모듈/프로젝트 제거settings.gradle삭제com.mopl.monitor.MonitorApplication삭제application.properties삭제첨부할 말
프로젝트 처음 만들 때 spring으로 만들어서 쓰지 않는 것들은 다 제거했습니다. 실수로 만들었요.
docker-compose up -d --build로 실행할 수 있습니다.
모니터링 컴포즈를 먼저 올리고 배치 작업을 수행하면 pushgateway로 작업 관련 metric 들이 전송됩니다. garafana로 확인할 수 있는데,
대시보드를 만들긴 했는데, 기대한 데이터와 실제 나타나는 데이터가 조금 다릅니다. 이는 대시보드 문제같은데 추후 해결하겠습니다.

