glue: otel scrape targets for authelia, grafana and nats move out of the services
Part of #3742.
This commit is contained in:
parent
6c1ab87f68
commit
c06aa78b63
9 changed files with 68 additions and 64 deletions
|
|
@ -137,6 +137,17 @@ let
|
|||
&& !(lib.elem "forge.t.local" bare.services.hyperhive.gateway.localNames)
|
||||
&& !(refusedOver bare "deploy.forgejo.sso.clientSecretFile");
|
||||
}
|
||||
{
|
||||
name = "a host running the collector and authelia, grafana and nats scrapes all three on loopback";
|
||||
ok =
|
||||
let
|
||||
t = servicesHere.services.hyperhive.swarm.otel.scrapeTargets;
|
||||
port = n: toString servicesHere.services.hyperhive.swarm.${n}.metricsPort;
|
||||
in
|
||||
t.authelia == "127.0.0.1:${port "authelia"}"
|
||||
&& t.grafana == "127.0.0.1:${port "grafana"}"
|
||||
&& t.nats == "127.0.0.1:${port "nats"}";
|
||||
}
|
||||
{
|
||||
name = "hosting the swarm's shared services runs the forge";
|
||||
ok = runsForge servicesHere;
|
||||
|
|
|
|||
Loading…
Reference in a new issue