Watch
0
0
Fork
You've already forked hyperhive
0

ship container unit journals through the hive collector

This commit is contained in:
atlas 2026-10-29 12:49:03 +01:00
commit e316e683c3

View file

@ -432,6 +432,21 @@ let
atticExternal
];
}
{
# The hive collector ships the container units' start output (the rootfs
# check's lines) unless the swarm collector already reads the whole
# journal. `hive-c0re.service` is the control that the lookup finds the
# list.
name = "the hive collector ships the container units' journal only where nothing else reads the host journal";
ok =
let
units = m: m.services.opentelemetry-collector.settings.receivers.journald.units;
glob = "container@*.service";
in
lib.elem glob (units atticByHand)
&& !(lib.elem glob (units atticHere))
&& lib.elem "hive-c0re.service" (units atticHere);
}
{
# Both host units log in as the cache's principal, not the hive's, and
# the container reaches the key through a read-only directory. The