mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-18 05:58:17 +01:00
fix(monitoring): require exporter sockets from their services
Assisted-by: DeepSeek Harness (claude-opus-5-5)
This commit is contained in:
1 parent
f02b06563e
commit
6bd97ddf98
1 file changed
+3
@@ -163,6 +163,9 @@ in
|
||||
name: cfg:
|
||||
lib.nameValuePair "prometheus-${name}-exporter" {
|
||||
wantedBy = [ "sockets.target" ];
|
||||
# nixpkgs also starts the service from multi-user.target; requiring the
|
||||
# socket (which systemd orders first) keeps a switch from starting it bare.
|
||||
requiredBy = [ "prometheus-${name}-exporter.service" ];
|
||||
listenStreams = [ "${cfg.listenAddress}:${toString cfg.port}" ];
|
||||
socketConfig.FreeBind = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user