From bfa25c6419a9fe7c97533e85d0d9b562abaa92b4 Mon Sep 17 00:00:00 2001 From: atlas Date: Mon, 24 Aug 2026 17:00:38 +0200 Subject: [PATCH] feat(swarm): start the log store with the other required services Deferred until the collector had a logs pipeline writing to it: a store nothing writes to starts, answers queries and returns nothing, so the first person to look concludes there were no logs rather than that nothing was collecting them. --- nix/host-modules/swarm-required-services.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix/host-modules/swarm-required-services.nix b/nix/host-modules/swarm-required-services.nix index 80c3800a..a40b7e56 100644 --- a/nix/host-modules/swarm-required-services.nix +++ b/nix/host-modules/swarm-required-services.nix @@ -71,6 +71,13 @@ in victoriametrics.enable = lib.mkDefault swarmCfg.enableRequiredServices; grafana.enable = lib.mkDefault swarmCfg.enableRequiredServices; + # The log store, deriving from the same switch for the same reason — + # and deliberately in the same commit as the collector pipeline that + # writes to it, never before it. A store nothing writes to is worse + # than no store: it starts, answers queries, and returns nothing, so + # the first person to look concludes there were no logs. + victorialogs.enable = lib.mkDefault swarmCfg.enableRequiredServices; + # The collector that feeds the pair above, and the only tier holding # the upstream credential. Same rule as the rest: once per swarm, # optional, and a hive that is not the service host is a *client* of