copy nb configuration and modules
This commit is contained in:
30
utils/modules/netdata.nix
Normal file
30
utils/modules/netdata.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
python39
|
||||
];
|
||||
|
||||
services.netdata.configDir."python.d.conf" = pkgs.writeText "python.d.conf" ''
|
||||
postfix: yes
|
||||
'';
|
||||
|
||||
services.netdata = {
|
||||
enable = true;
|
||||
|
||||
python.enable = true;
|
||||
|
||||
config = {
|
||||
global = {
|
||||
# uncomment to reduce memory to 32 MB
|
||||
"page cache size" = 32;
|
||||
|
||||
# update interval
|
||||
"update every" = 15;
|
||||
};
|
||||
ml = {
|
||||
# enable machine learning
|
||||
"enabled" = "yes";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user