From c590db4ea9f35b8ea9fb0a83e0c21becaaada503 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Thu, 28 Aug 2025 15:05:15 +0900 Subject: [PATCH] =?UTF-8?q?robeing-monitor=20mount=20=EA=B2=BD=EB=A1=9C=20?= =?UTF-8?q?/api=EB=A1=9C=20=EB=AA=85=EC=8B=9C=20-=20healthz=20=EC=B6=A9?= =?UTF-8?q?=EB=8F=8C=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- troubleshooting/250817_robeing_monitor_integration.md | 5 ++++- .../250823_happybell80_rb8001_레벨1_표시_문제.md | 3 ++- troubleshooting/250825_robeing_stats_display_issue.md | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/troubleshooting/250817_robeing_monitor_integration.md b/troubleshooting/250817_robeing_monitor_integration.md index 321f8bf..04576ad 100644 --- a/troubleshooting/250817_robeing_monitor_integration.md +++ b/troubleshooting/250817_robeing_monitor_integration.md @@ -72,7 +72,10 @@ - **문제**: rb8001이 하드코딩된 레벨 1 반환 - **해결**: robeing-monitor의 `/api/stats/{robeing_id}` 활용 - **필요 작업**: - 1. 51124: state_service 라우터를 main.py에 마운트 + 1. 51124: state_service를 main.py에 /api 경로로 마운트 + ```python + app.mount("/api", state_service.app) # /healthz 충돌 방지 + ``` 2. 51123: Gateway에서 로빙 모니터 API 호출로 변경 - **효과**: DB의 실제 레벨(20) 표시 diff --git a/troubleshooting/250823_happybell80_rb8001_레벨1_표시_문제.md b/troubleshooting/250823_happybell80_rb8001_레벨1_표시_문제.md index ee2eb81..85eaf84 100644 --- a/troubleshooting/250823_happybell80_rb8001_레벨1_표시_문제.md +++ b/troubleshooting/250823_happybell80_rb8001_레벨1_표시_문제.md @@ -120,10 +120,11 @@ if robeing_id == "rb8001" and "stats" in data: ### 로빙 모니터 API 활용 - **51124 서버**: robeing-monitor (포트 9024) 실행 중 - **문제**: `/api/stats/{robeing_id}` 엔드포인트가 main.py에 마운트 안됨 -- **해결**: 51124에서 state_service 라우터를 main.py에 통합 +- **해결**: 51124에서 state_service를 main.py에 /api 경로로 마운트 - **Gateway 수정**: ```python # rb8001 하드코딩 대신 로빙 모니터 호출 + # state_service가 /api에 마운트됨 target_url = f"http://192.168.219.52:9024/api/stats/{robeing_id}" ``` diff --git a/troubleshooting/250825_robeing_stats_display_issue.md b/troubleshooting/250825_robeing_stats_display_issue.md index d4cf7f4..e423008 100644 --- a/troubleshooting/250825_robeing_stats_display_issue.md +++ b/troubleshooting/250825_robeing_stats_display_issue.md @@ -169,9 +169,10 @@ useEffect(() => { #### 1. ~~rb8001 서비스 수정~~ → 로빙 모니터 활용 (2025-08-28) - **새 방안**: robeing-monitor API 사용 -- **51124 작업**: state_service 라우터를 main.py에 마운트 +- **51124 작업**: state_service를 main.py에 /api 경로로 마운트 (app.mount("/api", state_service.app)) - **51123 작업**: Gateway에서 로빙 모니터 호출로 변경 ```python + # state_service가 /api에 마운트됨 target_url = f"http://192.168.219.52:9024/api/stats/{robeing_id}" ```