swarm-required-services: default otel.enable from enableRequiredServices
This commit is contained in:
parent
4c7865cd8b
commit
89e8600ba8
1 changed files with 14 additions and 0 deletions
|
|
@ -71,4 +71,18 @@ in
|
||||||
victoriametrics.enable = lib.mkDefault swarmCfg.enableRequiredServices;
|
victoriametrics.enable = lib.mkDefault swarmCfg.enableRequiredServices;
|
||||||
grafana.enable = lib.mkDefault swarmCfg.enableRequiredServices;
|
grafana.enable = lib.mkDefault swarmCfg.enableRequiredServices;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# The collector that feeds the pair above. Missed for the same reason
|
||||||
|
# `nats.enable` was above (found while investigating why grafana showed
|
||||||
|
# nothing on a swarm-services host): `otel.nix` predates this file's
|
||||||
|
# last revisit, so its absence here was omission, not intent — a
|
||||||
|
# swarm-services host otherwise gets victoriametrics + grafana running
|
||||||
|
# with nothing feeding them until an operator flips `otel.enable` by
|
||||||
|
# hand. `services.hyperhive.otel` (note: no `swarm.` prefix, this is the
|
||||||
|
# existing per-hive option from ./otel.nix, not a new swarm-scoped one)
|
||||||
|
# already treats a co-located `swarm.victoriametrics.enable` as a
|
||||||
|
# complete destination with no `endpoint` required (see that module's
|
||||||
|
# own history), so this default is self-sufficient on exactly the host
|
||||||
|
# it fires on.
|
||||||
|
config.services.hyperhive.otel.enable = lib.mkDefault swarmCfg.enableRequiredServices;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue