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
|
|
@ -346,6 +346,16 @@ in
|
|||
# The unit whose crash-watch warning a swarm-level alert reads.
|
||||
services.hyperhive.otel.journalUnits = [ "hive-c0re.service" ];
|
||||
|
||||
# A container's start-time output: the rootfs check's warn-only lines
|
||||
# and strict refusals (`hive-priv check-rootfs`, an `ExecStartPre=` of
|
||||
# the unit) and nspawn's own start failures. `journalctl -u` takes the
|
||||
# glob. A host that also runs the swarm collector ships its whole
|
||||
# journal already (./swarm-otel.nix), so naming it there would send
|
||||
# each line twice.
|
||||
services.hyperhive.otel.journalUnits = lib.optionals (
|
||||
!config.services.hyperhive.deploy.swarm-otel.enable
|
||||
) [ "container@*.service" ];
|
||||
|
||||
services.opentelemetry-collector = {
|
||||
enable = true;
|
||||
# Contrib, matching the swarm tier (./swarm-otel.nix). The upstream
|
||||
|
|
|
|||
Loading…
Reference in a new issue