leave squid's and hive-c0re's journals to the swarm tier when both run on one host
This commit is contained in:
parent
4fa7cde273
commit
790e242e8c
1 changed files with 44 additions and 9 deletions
|
|
@ -449,7 +449,10 @@ in
|
|||
services.hyperhive.network.enable = lib.mkDefault true;
|
||||
|
||||
services.hyperhive.otel.scrapeTargets.squid = exporterListen;
|
||||
services.hyperhive.otel.journalUnits = [
|
||||
# A host that also runs the swarm collector ships its whole journal
|
||||
# already (./swarm-otel.nix), so naming the units there would send each
|
||||
# line twice.
|
||||
services.hyperhive.otel.journalUnits = lib.optionals (!hyperhiveCfg.deploy.swarm-otel.enable) [
|
||||
"squid.service"
|
||||
"squid-selfcheck.service"
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue