Skip to content

Conversation

@S2hyeyunS2
Copy link
Collaborator

📍 PR 타입 (하나 이상 선택)

  • 기능 추가
  • 버그 수정
  • 리팩토링
  • 기타 사소한 수정

❗️ 관련 이슈 링크

Close #103


📌 개요

  • 전체 서비스에 모니터링 스택(Prometheus/Grafana) 및 로그 수집(Loki), 분산 트레이싱(Zipkin)을 연동했습니다.
  • 각 서비스에 Actuator + Prometheus Registry를 적용하여 /actuator/prometheus로 메트릭을 노출하고, Logback을 통해 Loki로 로그를 전송하도록 구성했습니다.
  • 연동 확인 중 delivery/user 서비스는 Spring Security 설정으로 Actuator 접근이 차단되어 Prometheus Targets가 DOWN(401) 상태였고, /actuator/** 인증 예외 처리로 수집 가능하도록 조치했습니다.

🔁 변경 사항

  1. Metrics (Prometheus)
    전 서비스에 Actuator 및 Prometheus Registry 의존성 추가
    /actuator/prometheus 엔드포인트 노출 설정 추가(프로파일/설정 파일 적용)

  2. Logs (Loki)
    전 서비스에 Loki Logback Appender 적용
    logback-spring.xml 추가/수정하여 Loki로 로그 push 구성
    서비스명/호스트 등 라벨 기반으로 로그 식별 가능하도록 설정

  3. delivery/user 401 이슈 해결
    원인: Spring Security 설정으로 Actuator 접근이 막혀 Prometheus가 메트릭을 수집하지 못함
    해결: delivery, user에서 /actuator/**를 인증 예외(permitAll) 처리하여 Prometheus 수집 가능하도록 변경


📸 스크린샷

제목 스크린샷

👀 기타 더 이야기해볼 점


✅ 체크 리스트

  • PR 템플릿에 맞추어 작성했어요.
  • 변경 내용에 대한 테스트를 진행했어요.
  • 프로그램이 정상적으로 동작해요.
  • PR에 적절한 라벨을 선택했어요.
  • 불필요한 코드는 삭제했어요.

@S2hyeyunS2 S2hyeyunS2 self-assigned this Jan 4, 2026
@S2hyeyunS2 S2hyeyunS2 added bug Something isn't working feature labels Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] HubEleven 전체 서비스 모니터링 연동

1 participant