test(alerts): fix the silent-finding time and keep cpu_pct first in the host_agent catalog (#5062)
CI 8325: NOW - 10 min is 11:50, not 09:50; and rule_fields' refusal lists the catalog in order, so seconds_since_seen goes last. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,7 @@ def get_alert_metrics() -> dict[str, list[str]]:
|
||||
disk_used_pct per mount, resource "<host>:<mount>"). seconds_since_seen
|
||||
comes from the scheduler, not the agent: "agent offline" is > 180."""
|
||||
return {"host_agent": [
|
||||
"seconds_since_seen", "cpu_pct", "mem_used_pct", "mem_available_bytes", "swap_used_bytes",
|
||||
"cpu_pct", "mem_used_pct", "mem_available_bytes", "swap_used_bytes",
|
||||
"disk_used_pct_worst", "disk_used_pct", "load_1m", "load_5m", "load_15m",
|
||||
"uptime_secs",
|
||||
"uptime_secs", "seconds_since_seen",
|
||||
]}
|
||||
|
||||
Reference in New Issue
Block a user