fix(monitoring): target host ssh endpoint
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 1m23s
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
AI 技術雷達監控 / ai-technology-watch (push) Successful in 1m1s
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 1m23s
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
AI 技術雷達監控 / ai-technology-watch (push) Successful in 1m1s
This commit is contained in:
@@ -65,6 +65,8 @@ def test_host_memory_pressure_is_not_mislabeled_as_oom_or_host_188() -> None:
|
||||
assert rule["labels"]["layer"] == "systemd-{{ $labels.host }}"
|
||||
assert rule["labels"]["auto_repair"] == "true"
|
||||
assert "不代表已發生 OOM" in annotations["description"]
|
||||
assert annotations["auto_repair_action"].startswith("ssh 192.168.0.{{ $labels.host }} ")
|
||||
assert "{{ $labels.instance }}" not in annotations["auto_repair_action"]
|
||||
assert "oom_kill" in annotations["auto_repair_action"]
|
||||
assert "drop_caches" not in annotations["auto_repair_action"]
|
||||
assert "restart" not in annotations["auto_repair_action"]
|
||||
|
||||
Reference in New Issue
Block a user