docs(governance): record adr100 slo emitter rollout
This commit is contained in:
@@ -2127,10 +2127,11 @@ Phase 6 完成後
|
||||
|
||||
**T18 ADR-100 SLO emitter 接入(2026-05-14 台北)**:
|
||||
- 觸發:治理告警 `governance_slo_data_gap` 反覆推 Telegram,但 production 查核顯示 API Pod 已有 `PROMETHEUS_MULTIPROC_DIR` 與 `emptyDir`,真正缺口是 `/metrics` 未輸出 ADR-100 recording rules 所需底層 series,導致 `sli:*` 全部 empty result。
|
||||
- 修正:新增 DB-derived `/metrics` emitter,從 `automation_operation_log`、`incident_evidence`、`knowledge_entries`、`approval_records` 暴露 `automation_operation_log_total`、`post_execution_verification_total`、`knowledge_entries_total`、`approval_records_high_confidence_total`、`approval_records_high_confidence_success_total`;不新增 schema、不改 scrape target。
|
||||
- 訊息治理:`GovernanceAgent` no-data hint 改為 emitter / recording rule / multiprocess mount 三段式,避免 Operator 被誤導成只有 `PROMETHEUS_MULTIPROC_DIR` 未設。
|
||||
- 驗證:`py_compile` pass;`pytest tests/test_adr100_slo_metrics_service.py tests/test_governance_agent.py tests/test_ai_governance_endpoints.py -q` 47 passed;ruff F/E9 pass;diff check pass;production SQL dry-run 通過。
|
||||
- 目前進度更新:Alertmanager 低風險自動修復主線約 96%;完整 AI 自動化管理產品化約 78%。推版後需等 Prometheus scrape / recording rule evaluation,再確認 `sli:*` 不再全空。
|
||||
- 修正:新增 DB-derived `/metrics` emitter,從 `auto_repair_executions`、remediation/PlayBook 範圍的 `automation_operation_log`、`incident_evidence`、`knowledge_entries`、`approval_records` 暴露 `automation_operation_log_total`、`post_execution_verification_total`、`knowledge_entries_total`、`approval_records_high_confidence_total`、`approval_records_high_confidence_success_total`;不新增 schema、不改 scrape target。背景治理工作(asset scanner / rule updater 等)不進 AI 自動修復 SLO 分母。
|
||||
- 訊息治理:`GovernanceAgent` no-data hint 改為 emitter / recording rule / multiprocess mount 三段式;Prometheus `NaN` / `Inf` 改標 `skipped`,避免 Operator 被誤導成只有 `PROMETHEUS_MULTIPROC_DIR` 未設或把無分母資料假綠。
|
||||
- 驗證:`py_compile` pass;`pytest tests/test_adr100_slo_metrics_service.py tests/test_governance_agent.py tests/test_ai_governance_endpoints.py -q` 48 passed;ruff F/E9 pass;diff check pass;production SQL dry-run 通過。
|
||||
- Production deploy:`13cf02b7`、`368386ab`、`b92c9e28` 已推 Gitea main;Code Review runs `2155` / `2157` / `2159` success;CD runs `2154` / `2156` / `2158` success;最新 deploy marker `80a05653 chore(cd): deploy b92c9e2 [skip ci]`;API / Worker / Web image 均為 `b92c9e285f880c50893adeac9f55ab7b5170e303`;health healthy;`/metrics` 已輸出 scoped ADR-100 series,Prometheus 底層 metrics 與 `sli:*` 均不再 empty result。
|
||||
- 目前進度更新:Alertmanager 低風險自動修復主線約 96%;完整 AI 自動化管理產品化約 79%。T18 已解除 SLO data gap;下一段處理真實 SLO 紅燈(decision accuracy / KM growth)與前端治理階段呈現。
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user