Watch
0
0
Fork
You've already forked hyperhive
0

module-eval: grafana and swarm-otel cases follow the sender stamp

This commit is contained in:
atlas 2026-11-22 23:51:34 +01:00 • committed by mara
commit c529bab9ea

View file

@ -697,14 +697,22 @@ let
# names spelled here: an arm naming `h1` passes on a single-hive
# config however the mapping is written. The length clause is what
# makes the `all` mean anything — over an empty roster it holds
# vacuously.
# vacuously. The receiver arm covers the swarm tier's and each service
# forwarder's too, which the roster does not name; the swarm tier's own
# receiver is the presence control for it.
name = "every authenticated receiver, each hive's included, feeds the sender-stamping logs and metrics pipelines";
ok =
let
p = (otelSettings otelTwoHives).service.pipelines;
s = otelSettings otelTwoHives;
p = s.service.pipelines;
hives = lib.attrNames otelTwoHives.services.hyperhive.swarm.hives;
otlp = lib.filter (lib.hasPrefix "otlp/") (lib.attrNames s.receivers);
in
lib.length hives == 2
&& lib.elem "otlp/swarm" otlp
&& lib.all (
r: lib.elem r p."logs/authenticated".receivers && lib.elem r p."metrics/authenticated".receivers
) otlp
&& lib.all (
h:
lib.elem "otlp/${h}" p."logs/authenticated".receivers