Flake parts with x64 and ARM support for devshell on both Linux and Mac
This commit is contained in:
21
nix/monitoring/prometheus.nix
Normal file
21
nix/monitoring/prometheus.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ 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}" ];
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user