feat: Grafana Loki 로그 전송 구축 - #466
Merged
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.
#️⃣ Issue Number
📝 요약(Summary)
logback-spring.xml: 콘솔 출력은 유지하고/var/log/eatssu/app.log에 파일 출력 추가 (색상코드 제거, 일별+100MB 롤링, 3일/1GB 보관)cd.yml: 컨테이너에/var/log/eatssu볼륨 마운트 추가,monitoring/alloy-config.alloy를 EC2로 전송한 뒤__GRAFANA_TOKEN__/__APP_LABEL__플레이스홀더를 치환해/etc/alloy/config.alloy에 반영하고systemctl restart alloymonitoring/alloy-config.alloy: 기존 Prometheus remote_write 블록 유지 +loki.write/loki.source.file블록 신규 추가 (dev/prod 공용, 배포 시 치환)💬 공유사항 to 리뷰어
metrics:write+logs:write스코프로 재발급한 새 토큰을 GitHub SecretEATSSU_GRAFANA_TOKEN으로 등록해야 배포 시 Alloy가 정상 동작합니다. 이 시크릿 없이 머지되면sed치환 값이 빈 문자열이 되어 Alloy 인증이 깨집니다.awslogs)는 그대로 유지, CloudWatch 경로는 안 건드렸습니다.✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.