Skip to content

Commit

Permalink
eris: remove dependency on nixops 'resources' and manually list the f…
Browse files Browse the repository at this point in the history
…ew remaining nixops managed hosts
  • Loading branch information
delroth committed Jan 12, 2024
1 parent 79026fd commit 32739b5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions delft/eris.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ resources, options, config, lib, pkgs, ... }:
{ options, config, lib, pkgs, ... }:
let
inherit (lib) filterAttrs flip mapAttrsToList;
in
Expand Down Expand Up @@ -268,8 +268,16 @@ in
job_name = "node";
static_configs = [
{
targets = flip mapAttrsToList resources.machines (machine: v: "${v.networking.hostName}:9100");
labels.role = "unknown";
targets = [
"rhea:9100"
];
labels.role = "hydra";
}
{
targets = [
"eris:9100"
];
labels.role = "monitoring";
}
{
targets = [
Expand Down

0 comments on commit 32739b5

Please sign in to comment.