Skip to content

feat: prod API EC2 호스트 지표를 Node Exporter로 수집 - #96

Draft
Hexeong wants to merge 1 commit into
Hexeong/feat-stage-prod-api-ec2-node-exporterfrom
Hexeong/feat-prod-api-ec2-node-exporter
Draft

Hexeong wants to merge 1 commit into
Hexeong/feat-stage-prod-api-ec2-node-exporterfrom
Hexeong/feat-prod-api-ec2-node-exporter

Conversation

@Hexeong

@Hexeong Hexeong commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

관련 이슈

작업 내용

  • prod API EC2에서 Node Exporter를 활성화하고, 비활성화 시 기존 컨테이너를 정리할 수 있도록 관리 값을 유지합니다.
  • PR base는 stage 브랜치이므로 코드 diff는 prod 활성화 두 줄입니다. 현재는 초안이며 stage L4 완료 전 main에 병합하지 않습니다.

의도 (L2)

stage PR이 main에 병합된 뒤 이 PR을 main으로 재설정했을 때의 의도입니다.

verify-expect prod replace module.prod_stack.module.app.null_resource.update_side_infra

검증 결과 (L1 ~ L3)

  • 로컬 L1 + L3: PASS 20 / FAIL 0 / SKIPPED 0
  • 로컬 L2: PASS 7 / FAIL 0 / SKIPPED 0. 현재 origin/main 기준으로 stage와 prod의 update_side_infra가 각각 교체됩니다. stage PR 병합 후에는 prod만 교체되는지 다시 검사합니다.
  • prod 보안 그룹 9100 ingress는 실제로 모니터링 EC2 172.31.47.7/32만 허용합니다.

런타임 확인 체크리스트 (L4)

  • 대상: prod API EC2 / 확인: SSM에서 docker ps --filter name=node-exporter, docker inspect 재시작 정책 / 기대 결과: exporter 실행 중, restart=always.
  • 대상: prod API EC2 / 확인: curl -fsS http://172.31.56.245:9100/metrics / 기대 결과: CPU·메모리·파일시스템·네트워크 node_* 지표 반환.
  • 대상: 모니터링 EC2 / 확인: Prometheus up{job="solid-connection-server-node-exporter"}와 node_* 시계열, Grafana 대시보드 / 기대 결과: up=1, 최신 호스트 지표 표시.
  • 대상: prod 기존 수집 / 확인: Actuator 활성 슬롯과 Redis target, Loki의 최신 Spring 로그 / 기대 결과: 기존 수집 유지.
  • 대상: prod exporter / 확인: 압축 응답 크기와 10초 scrape 기준 AZ 간 전송량 재측정 / 기대 결과: 실제 측정값으로 이슈 비용 추정 갱신.

특이 사항

  • update_side_infra 교체 시 SSM 스크립트가 Redis·Redis Exporter·Alloy를 잠시 재시작합니다.
  • 모니터링 EC2의 실행 중 Prometheus 설정은 이미 stage·prod의 사설 IP를 가리킵니다. 모니터링 자체 exporter의 잘못된 대상은 feat: stage API EC2 호스트 지표를 Node Exporter로 수집 #95 작업 중 SSM으로 정정하고 up=1을 확인했습니다.
  • stage L4를 통과하고 #95가 main에 반영되기 전에는 이 PR을 ready로 전환하거나 병합하지 않습니다.

리뷰 요구사항 (선택)

  • stage 선행 조건과 prod plan의 단일 교체를 중점 확인해 주세요.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Hexeong Hexeong self-assigned this Nov 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant