A couple more prometheus details
Graham Christensen committed
Sep 27, 2019 at 01:17 UTC
f7fcfbef1c057d8f23d532dae41beb26348d9213
1 file changed
+7
-1
delft/eris.nix
+7
-1
@@ -64,7 +64,8 @@ in {
64
job_name = "node";
65
static_configs = [
66
{
67
- targets = flip mapAttrsToList resources.machines (machine: v: "${v.networking.hostName}:9100");
67
+ targets = flip mapAttrsToList resources.machines (machine: v: "${v.networking.hostName}:9100");
68
+ labels.role = "unknown";
69
}
70
{
71
targets = [
@@ -80,6 +81,11 @@ in {
81
labels.mac = "guest";
82
labels.role = "builder";
83
}
84
+ {
85
+ targets = flip mapAttrsToList macs (machine: v: "${machine}:9100");
86
+ labels.mac = "host";
87
+ labels.role = "builder";
88
+ }
89
];
90
}
91
{