From cf21a15bd18ec41a0d74f22da76e920096e053dd Mon Sep 17 00:00:00 2001 From: panxiao81 Date: Sun, 27 Sep 2026 17:30:30 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=AD=A3=E7=BB=B4=E6=8A=A4?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E7=9A=84=20PrometheusRule=20=E4=B8=8E?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E7=BA=A6=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/shared-postgresql.md | 5 +++-- verification.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/services/shared-postgresql.md b/services/shared-postgresql.md index 49fe03c..0d7c67c 100644 --- a/services/shared-postgresql.md +++ b/services/shared-postgresql.md @@ -150,7 +150,8 @@ Terraform backend 已复用 `kv/k8s/seaweedfs-s3` 中受限 AK/SK;此前阻塞 Bao token,数据库和 etcd 未重启。实际检查均成功;vmagent Pod 可访问三个内网 `:9109/metrics`。 [IaC PR #166](https://git.ddupan.top/panxiao81/homelab-infra/pulls/166) 尚待合并,新增抓取和八条告警 -**尚未启用**。规则覆盖采集不可用/过期/单项失败、备份超过 36 小时、证书不足 10 天 warning / 3 天 +**尚未启用**。告警以 PrometheusRule 声明,由现有 converter 转换;exporter 升级只改版本, +下载包与官方校验和列表随同一版本变量变化。规则覆盖采集不可用/过期/单项失败、备份超过 36 小时、证书不足 10 天 warning / 3 天 critical、续签检查超过 36 小时或失败,以及 dev SQL 连续异常 3 分钟。已有运行及选主告警保持启用。 故障时先查 `homelab-data-collect.service/timer` 和 `homelab-data-exporter.service`。 @@ -160,5 +161,5 @@ dev 异常查数据库 unit、磁盘及 socket。不要通过修改备份文件 备份年龄不证明可恢复或 WAL 连续;dev 只读检查不验证外部 DNS/TLS;磁盘证书有效不证明运行进程已 重载。部署入口与详细排障见 [维护监控 runbook](https://git.ddupan.top/panxiao81/homelab-infra/src/branch/main/infrastructure/shared-data-monitoring/README.md)。 文档来源 [26a8ffe](https://git.ddupan.top/panxiao81/homelab-infra/commit/26a8ffe),IaC 版本 -[0988f5c](https://git.ddupan.top/panxiao81/homelab-infra/commit/0988f5c)。6 项采集测试、12 个新增告警场景、 +[0d633cf](https://git.ddupan.top/panxiao81/homelab-infra/commit/0d633cf)。6 项采集测试、12 个新增告警场景、 既有规则回归、Ansible lint 和 Kustomize 渲染通过;三主机重复部署 `changed=0`。 diff --git a/verification.md b/verification.md index c60e458..6bc4a20 100644 --- a/verification.md +++ b/verification.md @@ -167,6 +167,6 @@ Ayatori 按维护者决定继续使用独立控制面,本轮只准备接入材 ## 共享数据维护告警接管边界 2026-09-27 主机端采集、低开销 exporter 和三目标网络验证完成,6 项采集测试及 12 个新增规则场景通过。 -相关 [PR #166](https://git.ddupan.top/panxiao81/homelab-infra/pulls/166) 尚未合并;新增 VMStaticScrape/VMRule +相关 [PR #166](https://git.ddupan.top/panxiao81/homelab-infra/pulls/166) 尚未合并;新增 VMStaticScrape/PrometheusRule 尚未现场应用,不能把端点可达当作告警已启用。合并后需核实 Flux inventory、三个 up 目标及八条规则健康。 详细事实见[维护告警](services/shared-postgresql.md#维护告警2026-09-27)。现有 PR #159 的接管验收不受影响。