ci / test (push) Failing after 22s
Kiosk-Watchdog gode-pc-02 schiebt 4x taeglich Akku, Online-Status, Preview-Streaming und Verbrauchsmodell (job=arlo). Freigabe R. Rapp 03.11.
96 lines
4.4 KiB
YAML
96 lines
4.4 KiB
YAML
# Deterministisches Autohealing (SPEC-healer). {label} wird aus den Alert-Labels ersetzt.
|
||
max_actions_per_hour: 10
|
||
# Infrastruktur-Aktionen laufen nur, wenn KNASTER_DRY_RUN=false UND sie hier stehen.
|
||
enabled_actions: []
|
||
rules:
|
||
- id: slot-endpoint-down
|
||
match: {alertname: SlotEndpointDown}
|
||
ladder:
|
||
- {action: restart_container, params: {host: "{docker_host}", container: "{container}"}, attempts: 2, cooldown: 5m}
|
||
- {action: restart_vm, params: {pve_node: "{pve_node}", vmid: "{vmid}"}, attempts: 1, cooldown: 15m}
|
||
- {action: mark_slot, params: {slot: "{slot}", status: degraded}, attempts: 1}
|
||
on_resolved:
|
||
- {action: mark_slot, params: {slot: "{slot}", status: ok}, only_if_set_by_healer: true}
|
||
|
||
- id: slot-canary-failing
|
||
match: {alertname: SlotCanaryFailing}
|
||
ladder:
|
||
- {action: restart_container, params: {host: "{docker_host}", container: "{container}"}, attempts: 1, cooldown: 10m}
|
||
- {action: mark_slot, params: {slot: "{slot}", status: degraded}, attempts: 1}
|
||
on_resolved:
|
||
- {action: mark_slot, params: {slot: "{slot}", status: ok}, only_if_set_by_healer: true}
|
||
|
||
- id: gpu-xid
|
||
match: {alertname: GpuXidError}
|
||
ladder:
|
||
- {action: mark_slot, params: {slot: "{slot}", status: degraded}, attempts: 1}
|
||
- {action: restart_vm, params: {pve_node: "{pve_node}", vmid: "{vmid}"}, attempts: 1, cooldown: 20m}
|
||
# ältere Karten ohne FLR brauchen ggf. einen Host-Neustart – nur mit Freigabe/Wartungsfenster
|
||
- {action: reboot_host, params: {pve_node: "{pve_node}"}, attempts: 1}
|
||
on_resolved:
|
||
- {action: mark_slot, params: {slot: "{slot}", status: ok}, only_if_set_by_healer: true}
|
||
|
||
- id: gpu-hot
|
||
match: {alertname: GpuTemperatureHigh}
|
||
ladder:
|
||
- {action: mark_slot, params: {slot: "{slot}", status: degraded}, attempts: 1}
|
||
on_resolved:
|
||
- {action: mark_slot, params: {slot: "{slot}", status: ok}, only_if_set_by_healer: true}
|
||
|
||
- id: kv-cache-saturated
|
||
match: {alertname: VllmKvCacheSaturated}
|
||
ladder:
|
||
- {action: notify, params: {text: "KV-Cache von {slot} dauerhaft voll – Last verteilen oder max_model_len senken", severity: warning}, attempts: 1}
|
||
|
||
- id: node-down
|
||
match: {alertname: NodeDown}
|
||
ladder:
|
||
- {action: notify, params: {text: "Node {instance} nicht erreichbar – Proxmox HA prüfen", severity: high}, attempts: 1}
|
||
|
||
- id: disk-full
|
||
match: {alertname: DiskAlmostFull}
|
||
ladder:
|
||
- {action: notify, params: {text: "Platte auf {instance} ({mountpoint}) fast voll", severity: warning}, attempts: 1}
|
||
|
||
# k3s (Task 6.5): nur melden; Pods startet Kubernetes selbst neu
|
||
- id: k3s-node-not-ready
|
||
match: {alertname: K3sNodeNotReady}
|
||
ladder:
|
||
- {action: notify, params: {text: "k3s-Knoten {node} nicht bereit – VM und k3s-agent prüfen", severity: high}, attempts: 1}
|
||
|
||
- id: k3s-pod-crashloop
|
||
match: {alertname: K3sPodCrashLooping}
|
||
ladder:
|
||
- {action: notify, params: {text: "Pod {namespace}/{pod} ({container}) startet immer wieder neu", severity: warning}, attempts: 1}
|
||
|
||
- id: k3s-deployment-unavailable
|
||
match: {alertname: K3sDeploymentUnavailable}
|
||
ladder:
|
||
- {action: notify, params: {text: "Deployment {namespace}/{deployment} hat zu wenige bereite Pods", severity: warning}, attempts: 1}
|
||
|
||
- id: k3s-memory-near-limit
|
||
match: {alertname: K3sContainerMemoryNearLimit}
|
||
ladder:
|
||
- {action: notify, params: {text: "{namespace}/{pod} ({container}) über 90 % des Speicherlimits", severity: warning}, attempts: 1}
|
||
|
||
# Arlo-Kameras (03.11.): nur melden; Akku tauschen/laden geht nur vor Ort
|
||
- id: arlo-battery-low
|
||
match: {alertname: ArloBatteryLow}
|
||
ladder:
|
||
- {action: notify, params: {text: "Arlo {camera}: Akku unter 20 % – Laden/Tausch planen (Dashboard arlo-kameras)", severity: warning}, attempts: 1}
|
||
|
||
- id: arlo-camera-offline
|
||
match: {alertname: ArloCameraOffline}
|
||
ladder:
|
||
- {action: notify, params: {text: "Arlo {camera} seit über 2 h offline – Akku/LTE prüfen", severity: warning}, attempts: 1}
|
||
|
||
- id: arlo-battery-drain-high
|
||
match: {alertname: ArloBatteryDrainHigh}
|
||
ladder:
|
||
- {action: notify, params: {text: "Arlo {camera} verbraucht deutlich mehr Akku als erwartet (24 h)", severity: warning}, attempts: 1}
|
||
|
||
- id: arlo-measurement-stale
|
||
match: {alertname: ArloMeasurementStale}
|
||
ladder:
|
||
- {action: notify, params: {text: "Akku-Messung von {instance} ausgeblieben – Kiosk-Watchdog gode-pc-02 prüfen", severity: warning}, attempts: 1}
|