fix(monitoring): classify host memory pressure accurately

This commit is contained in:
ogt
2026-07-15 06:15:13 +08:00
parent 89595a7d8d
commit 5c0c5f6da2
11 changed files with 76 additions and 25 deletions

View File

@@ -150,8 +150,8 @@ def collect_node_metrics(url: str, hostname: str) -> list[dict]:
mem_pct = (1.0 - mem_avail / mem_total) * 100
if mem_pct > THRESHOLDS["mem_pct_high"]:
alerts.append({
"alert_name": "HostOutOfMemory",
"severity": "critical",
"alert_name": "HostMemoryUsageHigh",
"severity": "warning",
"source": "node-exporter",
"namespace": "infra",
"target": hostname,