fix(monitoring): classify host memory pressure accurately
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user