module-eval: grafana and swarm-otel cases follow the sender stamp
This commit is contained in:
parent
2306b60473
commit
c529bab9ea
1 changed files with 70 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue