diff --git a/m/hut/ipmi.yml b/m/hut/ipmi.yml deleted file mode 100644 index 0d68a53..0000000 --- a/m/hut/ipmi.yml +++ /dev/null @@ -1,13 +0,0 @@ -modules: - default: - collectors: - - bmc - - ipmi - - chassis - - lan: - collectors: - - ipmi - - chassis - user: "" - pass: "" diff --git a/m/hut/monitoring.nix b/m/hut/monitoring.nix index f7c7421..5c60260 100644 --- a/m/hut/monitoring.nix +++ b/m/hut/monitoring.nix @@ -12,6 +12,8 @@ mode = "400"; }; + age.secrets.ipmiYml.file = ../../secrets/ipmi.yml.age; + services.grafana = { enable = true; settings = { @@ -73,8 +75,8 @@ enable = true; group = "root"; user = "root"; - configFile = ./ipmi.yml; - #extraFlags = [ "--log.level=debug" ]; + configFile = config.age.secrets.ipmiYml.path; + extraFlags = [ "--log.level=debug" ]; listenAddress = "127.0.0.1"; }; node = { @@ -248,6 +250,17 @@ module = [ "raccoon" ]; }; } + { + job_name = "ipmi-fox"; + metrics_path = "/ipmi"; + static_configs = [ + { targets = [ "127.0.0.1:9290" ]; } + ]; + params = { + target = [ "10.0.40.126" ]; + module = [ "fox" ]; + }; + } ]; }; } diff --git a/secrets/ipmi.yml.age b/secrets/ipmi.yml.age new file mode 100644 index 0000000..ec99e58 Binary files /dev/null and b/secrets/ipmi.yml.age differ diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 68c746b..58ec2d6 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -12,6 +12,7 @@ in "gitlab-bsc-docker-token.age".publicKeys = hut; "nix-serve.age".publicKeys = hut; "jungle-robot-password.age".publicKeys = hut; + "ipmi.yml.age".publicKeys = hut; "ceph-user.age".publicKeys = safe; "munge-key.age".publicKeys = safe;