ship container unit journals through the hive collector
This commit is contained in:
parent
37d5fad0b3
commit
e316e683c3
1 changed files with 27 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue