fix(monitoring): restore youko metrics, alerts and VM-host deploys (#431)

* flake.lock: Update

nixpkgs only. The new revision builds VictoriaMetrics with cgo
(CGO_ENABLED=1); its pure-Go zstd decoder rejected a stored values block, so
every small-part merge panicked on youko.

* fix(colmena): address the VM hosts by name, not by their IP

`~/.ssh/config` pins the passphrase-protected builder key with IdentitiesOnly
for 192.168.*, so IP-addressed ssh cannot authenticate without a terminal. The
name resolves through the aliases in /etc/ssh/ssh_config.

* fix(monitoring): repair two alert rules VictoriaMetrics rejects

`on(uid)` matches on a label kube-state-metrics no longer emits, and
`!= ON(__name__, instance)` treats every pg_settings series as a duplicate.
They now join on (namespace, pod) and compare with `changes(...[5m])`.

* fix(monitoring): keep disk latency alerts off mechanical disks

Both rules averaged per-op latency with no device or sample guard, so the 4 TB
USB HDD volumes paged constantly (>100 ms/write in 26% of the last 30 days).
They now require a non-rotational physical device and >=5 ops/s.

Assisted-by: DeepSeek Harness 0.2.0-rc.2 (deepseek-flash)
This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-11 18:16:04 +08:00
1 parent 497fabbf92
commit 2f6f2b6926
7 files changed
+17 -22

No files matched your search

@@ -43,8 +43,6 @@ in
systemArgs
// {
inherit tags ssh-user;
# reach the host by IP: its DNS name changes with the hostname
targetHost = myvars.networking.hostsAddr.${name}.ipv4;
}
);
@@ -43,8 +43,6 @@ in
systemArgs
// {
inherit tags ssh-user;
# reach the host by IP: its DNS name changes with the hostname
targetHost = myvars.networking.hostsAddr.${name}.ipv4;
}
);
@@ -43,8 +43,6 @@ in
systemArgs
// {
inherit tags ssh-user;
# reach the host by IP: its DNS name changes with the hostname
targetHost = myvars.networking.hostsAddr.${name}.ipv4;
}
);