-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Prometheus metrics endpoint 추가 #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
KimDongGyun23
approved these changes
Jan 9, 2026
Collaborator
KimDongGyun23
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다! any 타입은 수정해두면 좋을 것 같아요!
YunDo-Gi
approved these changes
Jan 9, 2026
Collaborator
YunDo-Gi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
문제가 발생한 원인을 찾고 해결하는 과정이 빠르네요! 고생하셨어요 👏👏
- 백엔드는 로컬에서 실행 -나머지 서비스는 도커 실행
- 배포 시 모든 서비스 시작 (backend, node-exporter, promtail) - 로그 쿼리를 위한 static labels 유지 (job, env, filename)
Collaborator
Author
|
good idea!! |
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.
#️⃣ 연관된 이슈 번호
⏰ 작업 시간
📝 작업 내용
주요 고민과 해결 과정
백엔드 node-exp 접근이 안되고 있었다.
방화벽 가능성이 높았고 확인해보니 백엔드 inbound 추가 문제인것을 확인했다.
백엔드 서버의 메트릭 정보가 수집이 안되고 있었다.
학습때 누락되었던 부분이였다.
애플리케이션 메트릭을 수집할때: prom-client / Redis Exporter이렇게 사용했었다.
서버별 구성으로
Node Exporter, Redis Exporter = 독립 실행 파일 → 그냥 실행이 가능했다.
prom-client = npm 라이브러리 → NestJS 통합 코드 필요
그래서 첫번째로 prom-client의 설치 위치를 백엔드 디렉토리에서 누락시켰고, metric에 대한 글로벌 인터셉터 설정이 필요했다.
위 사항들이 모드 트러블 슈팅을 해결하기 위한 과정이였고, 배포가 되었을때
URL: http://211.188.50.8:9090/targets를 재 확인해야한다.
배포 환경도 수정 완료 했습니다
프로메테우스에서 node-exporter를 인식하지 못했던 문제 해결
promtail-client cd.yml 파일세팅 추가 -> 정상적인 loki 로그 수집 확인
💬 리뷰 요구사항
📘 참고 자료