Add fox IPMI monitoring
Use agenix to store the credentials safely.
This commit is contained in:
parent
07ab4018d8
commit
049ad4d062
@ -1,13 +0,0 @@
|
|||||||
modules:
|
|
||||||
default:
|
|
||||||
collectors:
|
|
||||||
- bmc
|
|
||||||
- ipmi
|
|
||||||
- chassis
|
|
||||||
|
|
||||||
lan:
|
|
||||||
collectors:
|
|
||||||
- ipmi
|
|
||||||
- chassis
|
|
||||||
user: ""
|
|
||||||
pass: ""
|
|
@ -12,6 +12,8 @@
|
|||||||
mode = "400";
|
mode = "400";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
age.secrets.ipmiYml.file = ../../secrets/ipmi.yml.age;
|
||||||
|
|
||||||
services.grafana = {
|
services.grafana = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@ -73,8 +75,8 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
group = "root";
|
group = "root";
|
||||||
user = "root";
|
user = "root";
|
||||||
configFile = ./ipmi.yml;
|
configFile = config.age.secrets.ipmiYml.path;
|
||||||
#extraFlags = [ "--log.level=debug" ];
|
extraFlags = [ "--log.level=debug" ];
|
||||||
listenAddress = "127.0.0.1";
|
listenAddress = "127.0.0.1";
|
||||||
};
|
};
|
||||||
node = {
|
node = {
|
||||||
@ -248,6 +250,17 @@
|
|||||||
module = [ "raccoon" ];
|
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
BIN
secrets/ipmi.yml.age
Normal file
Binary file not shown.
@ -12,6 +12,7 @@ in
|
|||||||
"gitlab-bsc-docker-token.age".publicKeys = hut;
|
"gitlab-bsc-docker-token.age".publicKeys = hut;
|
||||||
"nix-serve.age".publicKeys = hut;
|
"nix-serve.age".publicKeys = hut;
|
||||||
"jungle-robot-password.age".publicKeys = hut;
|
"jungle-robot-password.age".publicKeys = hut;
|
||||||
|
"ipmi.yml.age".publicKeys = hut;
|
||||||
|
|
||||||
"ceph-user.age".publicKeys = safe;
|
"ceph-user.age".publicKeys = safe;
|
||||||
"munge-key.age".publicKeys = safe;
|
"munge-key.age".publicKeys = safe;
|
||||||
|
Loading…
Reference in New Issue
Block a user