move netdata to monitoring component
This commit is contained in:
parent
650559abe6
commit
12f2bf4bf8
11 changed files with 60 additions and 36 deletions
nixos/system/server
|
@ -2,7 +2,7 @@
|
|||
|
||||
imports = [
|
||||
../../system/all
|
||||
./netdata.nix
|
||||
#./netdata.nix
|
||||
./initssh.nix
|
||||
#./graylog-exporter.nix
|
||||
./prometheus-exporters.nix
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
{ lib, pkgs, ... }: {
|
||||
services.netdata = {
|
||||
enable = lib.mkDefault true;
|
||||
# https://docs.netdata.cloud/daemon/config/
|
||||
config = {
|
||||
global = {
|
||||
"memory mode" = "ram";
|
||||
};
|
||||
};
|
||||
#configDir."python.d.conf" = pkgs.writeText "python.d.conf" ''
|
||||
# example: yes
|
||||
# default_run: no
|
||||
# samba: yes
|
||||
#'';
|
||||
};
|
||||
|
||||
# add samba to path of python plugin
|
||||
#systemd.services.netdata.path = [ pkgs.sudo pkgs.samba ];
|
||||
#systemd.services.netdata.serviceConfig.CapabilityBoundingSet = [ "~" ];
|
||||
#security.sudo.extraConfig = ''
|
||||
# netdata ALL=(root) NOPASSWD: ${pkgs.samba}/bin/smbstatus
|
||||
# netdata ALL=(root) NOPASSWD: /run/current-system/sw/bin/smbstatus
|
||||
#'';
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue