Skip to content

한눈 대시보드에 한계 줄 추가 - #1226

Merged
m-a-king merged 4 commits into
devfrom
infra/1224-glance-limits
Oct 15, 2026
Merged

m-a-king merged 4 commits into
devfrom
infra/1224-glance-limits

Conversation

@m-a-king

Copy link
Copy Markdown
Collaborator

한눈에

한눈 대시보드에 자원별 한도 사용률 줄을 추가함

  • 이전: 한눈 대시보드가 서비스 생존·오류·서버 자원만 보여 줌
    • 사용자가 늘 때 먼저 막히는 자원이 서비스별 대시보드에 흩어져 있음
  • 렌더 동시 처리·DB 커넥션·Redis·컨테이너 메모리·nginx 연결을 한 줄에 모음
    • 각 자원이 한도에 얼마나 가까운지 비율로 보여 줌
  • 대시보드는 사람이 terraform apply 를 실행할 때 Grafana 에 반영
  • 머지하면 dev 자동 배포. 앱 동작 변화 없음(설정 파일 주석만 바뀜)

Situation

착수 후 확인

Task

한눈 대시보드에 "한계" 줄 추가

Action

패널 7개

패널 비율의 기준
renderer 동시 렌더 포화율 동시 렌더 한도
DB 커넥션 사용률 MySQL max_connections·core Hikari 풀 크기
MySQL 버퍼풀 적중률 버퍼풀에서 읽은 비율
Redis 메모리 maxmemory
컨테이너 메모리 컨테이너 메모리 한도
컨테이너 스왑 비율 없이 바이트
nginx 활성 연결 비율 없이 개수. 한도는 패널 설명에서 nginx.conf 를 가리킴
  • 한도가 0(무제한)인 컨테이너·Redis 는 나눗셈 전에 비교 필터로 뺌
    • 원인: 0 으로 나누면 +Inf 가 그려짐
  • 순간값이 아니라 구간 최댓값을 그리는 패널 2개(렌더 포화·Hikari 활성)
    • 원인: 수집 주기 60초 사이의 짧은 포화를 놓침
  • 새 계측 없음. 시계열 증가 0

application.yml 의 http 지연 버킷 주석 정정

  • 대시보드 지연 패널이 버킷을 읽는다는 설명 삭제
    • 원인: 버킷을 읽는 대시보드·알림 0개. 지연 패널은 Tempo spanmetrics
  • 버킷은 그대로 둠
    • 원인: 지표 제거 대신 Grafana 유료 전환으로 가는 방향

Result

확인

  • 패널 쿼리 7개를 Grafana 에 직접 실행해 값이 나옴
  • terraform plan 결과는 한눈 대시보드 1개 수정뿐
지표 (10-15 현재) 값
prod MySQL 커넥션 max_connections 의 18%
prod 버퍼풀 적중률 100%
prod Redis 메모리 maxmemory 의 2.3%
dev core 컨테이너 메모리 한도의 90%

후속

  • 머지 뒤 terraform apply
  • prod·DB·extractor·renderer 서버에 Alloy 를 다시 깔면 컨테이너 패널이 채워짐

연관 이슈

- 박스 줄 아래에 "한계" 줄과 패널 7개 추가
  - renderer 동시 렌더 포화율
  - DB 커넥션 사용률(MySQL max_connections 대비·core Hikari 풀 대비)
  - MySQL 버퍼풀 적중률
  - Redis 메모리(maxmemory 대비)
  - 컨테이너 메모리(한도 대비)·컨테이너 스왑
  - nginx 활성 연결
- 한도 없는 컨테이너·Redis 는 0 나눗셈 대신 비교 필터로 뺌
- 새 계측 없음. 기존 지표와 cAdvisor·nginx exporter 지표만 씀
- 대시보드 지연 패널이 버킷을 읽는다는 설명 삭제
  - 원인: 버킷을 읽는 대시보드·알림 0개. 지연 패널은 Tempo spanmetrics
- 시계열 수 실측 숫자 삭제
  - 원인: 라벨 조합이 늘면 조용히 낡음. 근거는 #839 참조로 대체
@m-a-king m-a-king added the infra 운영 환경 (IaC·클라우드 리소스·secret·배포 workflow) label Oct 15, 2026
@m-a-king m-a-king linked an issue Oct 15, 2026 that may be closed by this pull request
@m-a-king m-a-king self-assigned this Oct 15, 2026
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: TeamPiKi/core/.coderabbit.yml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f26418c6-29da-446c-9144-f35c1119ea3f
  • 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

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

Discord 스레드 연동용 메타데이터입니다. discord-pr-bot 워크플로가 자동 생성하며, 수정·삭제하면 PR 과 Discord 알림 연동이 끊깁니다.

@m-a-king
m-a-king merged commit 00d7179 into dev Oct 15, 2026
5 checks passed
@m-a-king
m-a-king deleted the infra/1224-glance-limits branch October 15, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra 운영 환경 (IaC·클라우드 리소스·secret·배포 workflow)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

한눈 대시보드에 한계 줄 추가

1 participant