@echo off
rem ===================================================================
rem  Prometheus (관측성 B4) — RTGS 7개 서비스 /actuator/prometheus 스크랩.
rem  포터블: apps\prometheus-3.13.0, 데이터는 home\prometheus-data.
rem  UI: http://localhost:9090  (Status > Targets 로 수집 상태 확인)
rem ===================================================================
set "PROM=C:\ai-dev\apps\prometheus-3.13.0"
set "PDATA=C:\ai-dev\home\prometheus-data"
if not exist "%PDATA%" mkdir "%PDATA%"
echo [prometheus] starting on :9090 (scrape rtgs 7 services)...
start "Prometheus :9090" "%PROM%\prometheus.exe" --config.file="%~dp0prometheus.yml" --storage.tsdb.path="%PDATA%" --web.listen-address=0.0.0.0:9090
echo [prometheus] UI: http://localhost:9090  (Status ^> Targets)
