@cryptotaxi247 / infra / commits / 88abf452

hydra: expose hydra-notify's prometheus exporter on 0.0.0.0:9199

Eelco Dolstra committed Aug 25, 2021 at 17:52 UTC 88abf452e6cadcc0a6f88745e33bb806f67abb6e
2 files changed +11 -1
delft/ceres.nix
+4 -1
@@ -38,7 +38,10 @@
38 swapDevices = lib.mkForce [];
39
40 networking = {
41 - firewall.allowedTCPPorts = [ 80 443 ];
41 + firewall.allowedTCPPorts = [
42 + 80 443
43 + 9199 # hydra-notify's prometheus
44 + ];
45 firewall.allowPing = true;
46 firewall.logRefusedConnections = true;
47 };
delft/hydra.nix
+7
@@ -56,6 +56,13 @@ in
56 max_unsupported_time = 86400
57
58 allow_import_from_derivation = false
59 +
60 + <hydra_notify>
61 + <prometheus>
62 + listen_address = 0.0.0.0
63 + port = 9199
64 + </prometheus>
65 + </hydra_notify>
66 '';
67
68 systemd.tmpfiles.rules =