fix(monitoring): classify host memory pressure accurately
This commit is contained in:
@@ -11,11 +11,13 @@ alertname → incident_type 靜態對應表
|
||||
擴展方式:在 alert_rules.yaml 中新增 incident_type 欄位;此 dict 僅需補無 YAML 規則的 alertname。
|
||||
"""
|
||||
|
||||
# alertname → incident_type 對應(56 筆)
|
||||
# alertname → incident_type 對應;由測試驗證必要 taxonomy,不用易漂移的手填筆數。
|
||||
ALERTNAME_TO_TYPE: dict[str, str] = {
|
||||
# --- 主機層 (host_alerts) ---
|
||||
"HostDown": "host_down",
|
||||
"HostHighCpuLoad": "host_cpu",
|
||||
"HostMemoryUsageHigh": "host_memory",
|
||||
# Historical alias for persisted incidents created before the taxonomy fix.
|
||||
"HostOutOfMemory": "host_memory",
|
||||
"HostOutOfDiskSpace": "disk_full",
|
||||
"HostBackupFailed": "backup_failure",
|
||||
|
||||
Reference in New Issue
Block a user