Skip to content

apm 모니터링 세팅 추가#153

Merged
Junh-b merged 2 commits intodevfrom
config/monitoring-setup
Jun 13, 2025
Merged

apm 모니터링 세팅 추가#153
Junh-b merged 2 commits intodevfrom
config/monitoring-setup

Conversation

@Junh-b
Copy link
Contributor

@Junh-b Junh-b commented Jun 12, 2025

✨ 작업내용

  • docker compose 파일 작성
  • gitignore 추가
  • 프로메테우스, 그라파나 설정용 yml 추가
  • 자세한 지표 추적용 AOP 추가

🐞 이슈사항

이슈 번호 제목 상태
#152 백엔드 서버 apm 세팅 추가 ✅ 해결

⚠️ 특별사항

  • /monitoring 디렉터리에 있는 docker-compose에 성능 분석에 필요한 모니터링 스택이 포함되어 있습니다.
  • 이 모니터링 스택에는 spring boot actuator와 프로메테우스가 제공하는 기본적인 metric과, opentelemetry와 jaeger가 제공하는 apm 지표가 포함됩니다.
  • 이 지표는 통합적으로 그라파나 (localhost 3000)에서 확인할 수 있습니다.
  • 위 docker compose 세팅을 실행하기 위해서는 opentelemetry-javaagent.jar를 /monitoring 디렉터리에 다운로드 받으셔야 합니다. 링크 링크에서 jar 파일 받으시면 됩니다.
  • 또한, /docker 디렉터리에 local.properties가 있어야 합니다. 이 내용은 팀 노션의 .env에 있으니 참고 바랍니다.
  • 상세한 사용법은 별도 문서에서 정리하도록 하겠습니다.
  • 사용법은 팀 노션 - metric, apm 사용법에 정리해두었습니다.

Junh-b added 2 commits June 12, 2025 19:13
mircrometer, opentelemetry, jaeger, grafana 기반의 apm 세팅을 추가했습니다.
@Junh-b Junh-b self-assigned this Jun 12, 2025
@investfuture-sonarqube1
Copy link

Failed Quality Gate failed

  • 0.00% Coverage on New Code (is less than 80.00%)

Project ID: CleanEngine_cleanengine-be_2b6f2f63-fa39-426c-b9c7-8aa127fd14d8

View in SonarQube

Copy link
Contributor

@109an94 109an94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

와.. 파일 만드시느라 고생많으셨습니다. 덕분에 opentelemetry 알아갑니다

Copy link
Contributor

@caniro caniro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apm 모니터링 환경 구성 고생하셨고 공유 감사드립니다!
AOP Aspect 뚝딱뚝딱 만드시는 거 신기합니다ㅋㅋ
모니터링용 docker compose 파일 별도로 분리한 것도 좋구요
혹시 다운로드 해야 하는 jar 파일이 아래 maven repo에 있는 라이브러리랑 다른 건가요??
https://mvnrepository.com/artifact/io.opentelemetry.javaagent/opentelemetry-javaagent/2.16.0

@Junh-b
Copy link
Contributor Author

Junh-b commented Jun 12, 2025

혹시 다운로드 해야 하는 jar 파일이 아래 maven repo에 있는 라이브러리랑 다른 건가요?? https://mvnrepository.com/artifact/io.opentelemetry.javaagent/opentelemetry-javaagent/2.16.0

아마 그렇게 받은 jar파일을 지정해도 동일하게 실행될 거 같아요. 그런데 docker를 활용하는 환경에서는 jar를 빌드 설정에 포함시키지 않는 방식을 많이 사용하는 것 같습니다.

@Junh-b Junh-b merged commit 3ab1cc5 into dev Jun 13, 2025
1 check passed
@Junh-b Junh-b deleted the config/monitoring-setup branch June 13, 2025 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants