Add fox IPMI monitoring

Use agenix to store the credentials safely.
This commit is contained in:
Rodrigo Arias 2025-02-12 11:36:53 +01:00
parent 07ab4018d8
commit 049ad4d062
4 changed files with 16 additions and 15 deletions

View File

@ -1,13 +0,0 @@
modules:
default:
collectors:
- bmc
- ipmi
- chassis
lan:
collectors:
- ipmi
- chassis
user: ""
pass: ""

View File

@ -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" ];
};
}
];
};
}

BIN
secrets/ipmi.yml.age Normal file

Binary file not shown.

View File

@ -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;