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
|
|
@ -713,34 +713,6 @@ in
|
|||
services.hyperhive.gateway.enable = lib.mkDefault true;
|
||||
services.hyperhive.gateway.dns.enable = lib.mkDefault true;
|
||||
|
||||
# Declared here rather than in the collector's module, per the option's
|
||||
# own rule: an entry exists only where the service that named it runs.
|
||||
#
|
||||
# Gated on the collector's `enable` as well, and that second condition is
|
||||
# what makes the loopback address honest. Both services default from
|
||||
# `deploy.allSwarmServices` — but `mkDefault` is an invitation to
|
||||
# override, not a guarantee, so "they are on the same host" is a property
|
||||
# of the auto-deployed topology rather than of the module. Without this
|
||||
# gate, a host running authelia and no collector would declare a target
|
||||
# nothing can read, and the absence would be silent: no error, no metrics,
|
||||
# nothing to notice.
|
||||
#
|
||||
# It does not make authelia scrapeable from ANOTHER host — that needs the
|
||||
# endpoint published under a name with a cert and an audience, which is a
|
||||
# different piece of work. This only stops the config asserting a
|
||||
# collection that is not happening.
|
||||
# ⚠️ `swarm.otel` and not `hyperhive.otel` — two different collectors one
|
||||
# word apart. This one is the swarm's; `hyperhive.otel` is the per-hive
|
||||
# tier that ships telemetry upstream and never reads `scrapeTargets`.
|
||||
# Written out in full rather than through a `let` binding so the gate and
|
||||
# the option it gates are visibly the same path: gating the wrong one is
|
||||
# not a build error, it is a target that is always declared or never is.
|
||||
services.hyperhive.swarm.otel.scrapeTargets =
|
||||
lib.mkIf config.services.hyperhive.deploy.swarm-otel.enable
|
||||
{
|
||||
authelia = "127.0.0.1:${toString cfg.metricsPort}";
|
||||
};
|
||||
|
||||
# `server_name = authelia.domain`, all of `/` → authelia.
|
||||
#
|
||||
# ⚠️ The server name must be exactly `cfg.domain`, not a near-miss:
|
||||
|
|
|
|||
Loading…
Reference in a new issue