fix(alerts): stop slow-query backup misrouting
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m43s
CD Pipeline / build-and-deploy (push) Successful in 8m55s
CD Pipeline / post-deploy-checks (push) Successful in 1m50s
Agent Market Watch / market-watch (push) Failing after 36s
E2E Health Check / e2e-health (push) Successful in 54s
AI 技術雷達監控 / ai-technology-watch (push) Has started running
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 20s
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m43s
CD Pipeline / build-and-deploy (push) Successful in 8m55s
CD Pipeline / post-deploy-checks (push) Successful in 1m50s
Agent Market Watch / market-watch (push) Failing after 36s
E2E Health Check / e2e-health (push) Successful in 54s
AI 技術雷達監控 / ai-technology-watch (push) Has started running
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 20s
This commit is contained in:
@@ -607,7 +607,7 @@ groups:
|
||||
rules:
|
||||
# ---- PostgreSQL 詳細指標 ----
|
||||
- alert: PostgreSQLSlowQueries
|
||||
expr: pg_stat_activity_max_tx_duration{datname="awoooi_prod"} > 60
|
||||
expr: pg_stat_activity_max_tx_duration{datname="awoooi_prod",application_name!~"^(pg_dump|pg_basebackup)$"} > 60
|
||||
for: 5m
|
||||
labels:
|
||||
severity: warning
|
||||
@@ -618,7 +618,7 @@ groups:
|
||||
auto_repair: "false"
|
||||
annotations:
|
||||
summary: "PostgreSQL 有慢查詢 (>60s)"
|
||||
description: "awoooi_prod 資料庫最長事務超過 60 秒"
|
||||
description: "awoooi_prod 非備份程序的最長事務超過 60 秒"
|
||||
|
||||
- alert: PostgreSQLDeadlocks
|
||||
expr: increase(pg_stat_database_deadlocks{datname="awoooi_prod"}[5m]) > 0
|
||||
|
||||
@@ -291,7 +291,7 @@ groups:
|
||||
rules:
|
||||
# ---- PostgreSQL 詳細指標 ----
|
||||
- alert: PostgreSQLSlowQueries
|
||||
expr: pg_stat_activity_max_tx_duration{datname="awoooi_prod"} > 60
|
||||
expr: pg_stat_activity_max_tx_duration{datname="awoooi_prod",application_name!~"^(pg_dump|pg_basebackup)$"} > 60
|
||||
for: 5m
|
||||
labels:
|
||||
severity: warning
|
||||
@@ -302,7 +302,7 @@ groups:
|
||||
auto_repair: "false"
|
||||
annotations:
|
||||
summary: "PostgreSQL 有慢查詢 (>60s)"
|
||||
description: "awoooi_prod 資料庫最長事務超過 60 秒"
|
||||
description: "awoooi_prod 非備份程序的最長事務超過 60 秒"
|
||||
|
||||
- alert: PostgreSQLDeadlocks
|
||||
expr: increase(pg_stat_database_deadlocks{datname="awoooi_prod"}[5m]) > 0
|
||||
|
||||
Reference in New Issue
Block a user