2023-06-26 20:05:48 -05:00
|
|
|
{ config, pkgs, ... }: {
|
|
|
|
services.prometheus = {
|
|
|
|
enable = true;
|
|
|
|
port = 7001;
|
|
|
|
exporters = {
|
|
|
|
node = {
|
|
|
|
enable = true;
|
|
|
|
enabledCollectors = [ "systemd" ];
|
|
|
|
port = 7002;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
scrapeConfigs = [
|
|
|
|
{
|
|
|
|
job_name = "eve-psr-nix0";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ];
|
|
|
|
}];
|
|
|
|
}
|
2023-09-06 09:15:49 -05:00
|
|
|
{
|
|
|
|
job_name = "eve-psr-mc0";
|
|
|
|
static_configs = [{
|
|
|
|
targets = [ "192.168.0.131:7002" ];
|
|
|
|
}];
|
|
|
|
}
|
2023-06-26 20:05:48 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|