瀏覽代碼

补充本机演示账户并配置容器监控

leon 3 周之前
父節點
當前提交
f4846a8ed3
共有 2 個文件被更改,包括 25 次插入 和 3 次删除
  1. 21 0
      README.md
  2. 4 3
      ops/prometheus/prometheus.yml

+ 21 - 0
README.md

@@ -2,6 +2,27 @@
 
 智服中台面向多商家电商客服与售后场景,将消费者咨询、订单查询、知识检索、换货申请、人工审批和 OMS 履约连接为完整业务流程。项目包含消费者 H5、商家后台、平台后台、Agent 服务、独立 OMS 服务,以及模型用量、费用和运行监控能力。
 
+## 本机演示访问与账户
+
+以下为当前本机演示环境的访问地址与账号密码,地址均通过 `127.0.0.1` 在运行项目的电脑上访问。
+
+| 服务/角色 | 访问地址 | 演示账号 | 密码 |
+| --- | --- | --- | --- |
+| 消费者 H5 | [进入商城](http://127.0.0.1:18762/#/customer/home) | `customer01` | `JJJkewsWJfHeNcmVLmuzgwmx` |
+| 商家管理员 | [商家后台](http://127.0.0.1:18762/#/merchant/login) | `admin01` | `JJJkewsWJfHeNcmVLmuzgwmx` |
+| 客服 | [商家后台](http://127.0.0.1:18762/#/merchant/login) | `staff01` | `JJJkewsWJfHeNcmVLmuzgwmx` |
+| 审批主管 | [商家后台](http://127.0.0.1:18762/#/merchant/login) | `supervisor01` | `JJJkewsWJfHeNcmVLmuzgwmx` |
+| 费用管理 | [商家后台](http://127.0.0.1:18762/#/merchant/login) | `finance02` | `JJJkewsWJfHeNcmVLmuzgwmx` |
+| 平台管理员 | [平台后台](http://127.0.0.1:18762/#/platform/login) | `platform-admin` | `3TnCh2YxrsBsoRyrV0MRiL4q16NWKggO` |
+| Grafana | [监控面板](http://127.0.0.1:13000/d/zhifu-operations) | `zhifu` | `zhifu_local_only` |
+| Prometheus | [指标查询](http://127.0.0.1:19090) | 无需登录 | 无需密码 |
+| Alertmanager | [告警管理](http://127.0.0.1:19093) | 无需登录 | 无需密码 |
+| RabbitMQ | [消息管理](http://127.0.0.1:15673) | `zhifu` | `zhifu_local_only` |
+
+商家后台登录时,**商家标识**统一填写 `ac700000-2026-4000-8000-000000000001`。客服、审批主管、商家管理员和费用管理账户共用该入口,登录后按账户权限展示功能。
+
+Grafana 支持匿名只读访问,管理操作使用表中的账号登录。消费者与商家凭据保存在 `.work/frontend-accounts.json`,平台凭据保存在 `.work/platform-accounts.json`;首次在新环境准备账户时,脚本生成该环境的密码,以对应账户文件为准。
+
 ## 产品与业务
 
 | 使用者 | 入口与职责 |

+ 4 - 3
ops/prometheus/prometheus.yml

@@ -7,15 +7,16 @@ alerting:
     - static_configs:
         - targets: [alertmanager:9093]
 scrape_configs:
+  # 完整容器部署通过共享网络采集服务,目标地址随容器重建保持有效。
   - job_name: platform
     static_configs:
-      - targets: [host.docker.internal:18000]
+      - targets: [api:8000]
     file_sd_configs:
       - files: [/etc/prometheus/replicas/platform*.json]
         refresh_interval: 5s
   - job_name: inference
     static_configs:
-      - targets: [host.docker.internal:8200]
+      - targets: [inference:8200]
     file_sd_configs:
       - files: [/etc/prometheus/replicas/inference*.json]
         refresh_interval: 5s
@@ -26,4 +27,4 @@ scrape_configs:
   - job_name: operations
     scrape_timeout: 4s
     static_configs:
-      - targets: [host.docker.internal:8300]
+      - targets: [operations:8300]