copy nb configuration and modules
This commit is contained in:
parent
1af70a3095
commit
127eab91d5
114 changed files with 9070 additions and 0 deletions
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue