fix(monitoring): 修复 Prometheus 端口冲突问题
- 将 Prometheus 端口从 9090 改为 9099,避免与已有服务冲突 - 同步更新 install-monitor.sh 和 deploy.sh 中的端口配置 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
90bfa4afac
commit
8932d87df7
|
|
@ -204,7 +204,7 @@ cmd_monitoring_up() {
|
|||
echo ""
|
||||
echo "监控服务地址:"
|
||||
echo " Grafana: http://localhost:3030 (admin/admin123)"
|
||||
echo " Prometheus: http://localhost:9090"
|
||||
echo " Prometheus: http://localhost:9099"
|
||||
echo " Kong 指标: http://localhost:8001/metrics"
|
||||
echo ""
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ services:
|
|||
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||
- prometheus_data:/prometheus
|
||||
ports:
|
||||
- "9090:9090"
|
||||
- "9099:9090" # 使用 9099 避免与已有服务冲突
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- rwa-network
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ log_step() { echo -e "${CYAN}[STEP]${NC} $1"; }
|
|||
# 默认配置
|
||||
DOMAIN="${1:-monitor.szaiai.com}"
|
||||
GRAFANA_PORT=3030
|
||||
PROMETHEUS_PORT=9090
|
||||
PROMETHEUS_PORT=9099
|
||||
GRAFANA_USER="admin"
|
||||
GRAFANA_PASS="admin123"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue