swarm-otel: scrape VictoriaMetrics through its published name
The store's own /metrics was scraped over loopback, declared under deploy.victoriametrics.enable, so a collector on another host never had a job for it. Declare it as a published target on every host instead, keyed on swarm.victoriametrics.domain, and serve it on the metrics vhost behind the existing authz subrequest. Authelia's per-target rules (one collector rule, then deny) now cover it too. The loopback entry goes, so a single-host swarm scrapes the store once.
This commit is contained in:
parent
6d42abb285
commit
338a767a61
1 changed files with 80 additions and 21 deletions
|
|
@ -358,5 +358,7 @@ in
|
|||
forgejo = "https://${hyperhiveCfg.swarm.forge.domain}/metrics";
|
||||
# The vhost location is in ./swarm-authelia.nix.
|
||||
authelia = "https://${hyperhiveCfg.swarm.authelia.domain}/metrics";
|
||||
# The vhost location is in ./swarm-victoriametrics.nix.
|
||||
victoriametrics = "https://${vmCfg.domain}/metrics";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue