aboutsummaryrefslogtreecommitdiff
path: root/modules/private/system
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2021-03-28 18:39:14 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2021-03-28 18:39:14 +0200
commitc081a03a97780afd845e017f279e0f1e96a86c8a (patch)
tree884f968b2654d8f9b14fc583f6df6e3528fec449 /modules/private/system
parentc41d0de83b1841097c6be8d8baeed557b065657b (diff)
downloadNix-c081a03a97780afd845e017f279e0f1e96a86c8a.tar.gz
Nix-c081a03a97780afd845e017f279e0f1e96a86c8a.tar.zst
Nix-c081a03a97780afd845e017f279e0f1e96a86c8a.zip
Fix netdata stream for eldiron
Diffstat (limited to 'modules/private/system')
-rw-r--r--modules/private/system/eldiron.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/modules/private/system/eldiron.nix b/modules/private/system/eldiron.nix
index 2475710..fdc3692 100644
--- a/modules/private/system/eldiron.nix
+++ b/modules/private/system/eldiron.nix
@@ -122,14 +122,22 @@
122 services.netdata.config.global."memory mode" = "none"; 122 services.netdata.config.global."memory mode" = "none";
123 services.netdata.config.health."enabled" = "no"; 123 services.netdata.config.health."enabled" = "no";
124 services.netdata.config.web.mode = "none"; 124 services.netdata.config.web.mode = "none";
125 environment.etc."netdata/stream.conf".text = '' 125 users.users."${config.services.netdata.user}".extraGroups = [ "keys" ];
126 [stream] 126 environment.etc."netdata/stream.conf".source = "/var/secrets/netdata-stream.conf";
127 enabled = yes
128 destination = ${config.myEnv.monitoring.netdata_aggregator}
129 api key = ${config.myEnv.monitoring.netdata_keys.eldiron}
130 '';
131 secrets.keys = [ 127 secrets.keys = [
132 { 128 {
129 dest = "netdata-stream.conf";
130 user = config.services.netdata.user;
131 group = config.services.netdata.group;
132 permissions = "0400";
133 text = ''
134 [stream]
135 enabled = yes
136 destination = ${config.myEnv.monitoring.netdata_aggregator}
137 api key = ${config.myEnv.monitoring.netdata_keys.eldiron}
138 '';
139 }
140 {
133 dest = "zrepl_backup/identity"; 141 dest = "zrepl_backup/identity";
134 user = "root"; 142 user = "root";
135 group = "root"; 143 group = "root";