@cryptotaxi247 / infra-1 / commits / 3136161a

prom: start scraping bastion

Eelco Dolstra committed Nov 13, 2019 at 22:22 UTC 3136161aaa8c3ddb3db4500def19c618c02042a4
2 files changed +13
bastion/network.nix
+1
@@ -120,6 +120,7 @@ in
120 imports =
121 [ ../modules/common.nix
122 ../modules/wireguard.nix
123 + ../modules/prometheus
124 ../modules/tarball-mirror.nix
125 ../modules/hydra-mirror.nix
126 ];
delft/eris.nix
+12
@@ -78,6 +78,12 @@ in {
78 ];
79 labels.role = "webserver";
80 }
81 + {
82 + targets = [
83 + "bastion:9100"
84 + ];
85 + labels.role = "bastion";
86 + }
87 {
88 targets = flip mapAttrsToList macs (machine: v: "${machine}:9101");
89 labels.mac = "guest";
@@ -102,6 +108,12 @@ in {
108 ];
109 labels.role = "webserver";
110 }
111 + {
112 + targets = [
113 + "bastion:9300"
114 + ];
115 + labels.role = "bastion";
116 + }
117 ];
118 }
119 {