robeing-monitor mount 경로 /api로 명시 - healthz 충돌 방지
This commit is contained in:
parent
a33b4d08d0
commit
c590db4ea9
@ -72,7 +72,10 @@
|
|||||||
- **문제**: rb8001이 하드코딩된 레벨 1 반환
|
- **문제**: rb8001이 하드코딩된 레벨 1 반환
|
||||||
- **해결**: robeing-monitor의 `/api/stats/{robeing_id}` 활용
|
- **해결**: 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 호출로 변경
|
2. 51123: Gateway에서 로빙 모니터 API 호출로 변경
|
||||||
- **효과**: DB의 실제 레벨(20) 표시
|
- **효과**: DB의 실제 레벨(20) 표시
|
||||||
|
|
||||||
|
|||||||
@ -120,10 +120,11 @@ if robeing_id == "rb8001" and "stats" in data:
|
|||||||
### 로빙 모니터 API 활용
|
### 로빙 모니터 API 활용
|
||||||
- **51124 서버**: robeing-monitor (포트 9024) 실행 중
|
- **51124 서버**: robeing-monitor (포트 9024) 실행 중
|
||||||
- **문제**: `/api/stats/{robeing_id}` 엔드포인트가 main.py에 마운트 안됨
|
- **문제**: `/api/stats/{robeing_id}` 엔드포인트가 main.py에 마운트 안됨
|
||||||
- **해결**: 51124에서 state_service 라우터를 main.py에 통합
|
- **해결**: 51124에서 state_service를 main.py에 /api 경로로 마운트
|
||||||
- **Gateway 수정**:
|
- **Gateway 수정**:
|
||||||
```python
|
```python
|
||||||
# rb8001 하드코딩 대신 로빙 모니터 호출
|
# rb8001 하드코딩 대신 로빙 모니터 호출
|
||||||
|
# state_service가 /api에 마운트됨
|
||||||
target_url = f"http://192.168.219.52:9024/api/stats/{robeing_id}"
|
target_url = f"http://192.168.219.52:9024/api/stats/{robeing_id}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -169,9 +169,10 @@ useEffect(() => {
|
|||||||
|
|
||||||
#### 1. ~~rb8001 서비스 수정~~ → 로빙 모니터 활용 (2025-08-28)
|
#### 1. ~~rb8001 서비스 수정~~ → 로빙 모니터 활용 (2025-08-28)
|
||||||
- **새 방안**: robeing-monitor API 사용
|
- **새 방안**: robeing-monitor API 사용
|
||||||
- **51124 작업**: state_service 라우터를 main.py에 마운트
|
- **51124 작업**: state_service를 main.py에 /api 경로로 마운트 (app.mount("/api", state_service.app))
|
||||||
- **51123 작업**: Gateway에서 로빙 모니터 호출로 변경
|
- **51123 작업**: Gateway에서 로빙 모니터 호출로 변경
|
||||||
```python
|
```python
|
||||||
|
# state_service가 /api에 마운트됨
|
||||||
target_url = f"http://192.168.219.52:9024/api/stats/{robeing_id}"
|
target_url = f"http://192.168.219.52:9024/api/stats/{robeing_id}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user