fix: support preproduction monitoring on arm64

This commit is contained in:
hectorzhao
2026-08-26 14:25:31 +08:00
parent b7ae1aa41a
commit b0bdb608c1
4 changed files with 200 additions and 22 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
本目录提供系统监控第一版所需的真实采集配置。运营端不嵌入Prometheus或Grafana页面;NestJS仅从本机Prometheus读取固定指标,再由平台原生UI展示。
在目标Debian/Ubuntu测试服务器上,以root执行:
在目标 Debian/Ubuntuapt)或 Alibaba Cloud Linux 4 ARM64 测试服务器上,以 root 执行:
```bash
cd /opt/cmpp-platform
@@ -10,7 +10,7 @@ bash tools/monitoring/install-prometheus-monitoring.sh
bash tools/monitoring/install-service-exporters.sh
```
第一个脚本安装PrometheusNode Exporter,备份已有配置并校验规则;第二个脚本安装PostgreSQL、RedisNginx Exporter,开启MinIO回环原生指标。API指标仅监听`127.0.0.1:9464`Gateway指标复用回环控制端口`8090`。9090、9100、9187、9121、91139464均不得对公网开放。两个脚本均会打印恢复资产路径。
Debian/Ubuntu 使用系统包;Alibaba Cloud Linux 4 ARM64 使用脚本中锁定版本和 SHA-256 的官方 release 二进制。第一个脚本安装 PrometheusNode Exporter,备份已有配置并校验规则;第二个脚本安装 PostgreSQL、RedisNginx Exporter,开启 MinIO 回环原生指标。API 指标仅监听 `127.0.0.1:9464`Gateway 指标复用回环控制端口 `8090`。9090、9100、9187、9121、91139464 均不得对公网开放。两个脚本均会打印恢复资产路径。
安装后将下列配置写入`/etc/cmpp-platform/cmpp-platform.env`,再按正常发布窗口重启API