monitoring: move to tiered dbengine with netdata nightly
This commit is contained in:
parent
6b994c8591
commit
506e099945
1 changed files with 28 additions and 7 deletions
|
@ -34,7 +34,19 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.netdata.enable = true;
|
services.netdata = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.netdata.overrideAttrs (old: {
|
||||||
|
version = "1.35.0-nightly";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "netdata";
|
||||||
|
repo = "netdata";
|
||||||
|
rev = "955d1a7c61f4eab802648d563f84d978ebeb8fc4";
|
||||||
|
sha256 = "sha256-gN44Df+k384NummsHls2JY1CinBaFK3cpdmmdZMbA44=";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
# Allow WireGuard VPN
|
# Allow WireGuard VPN
|
||||||
networking.firewall.allowedUDPPorts = [ 51820 ];
|
networking.firewall.allowedUDPPorts = [ 51820 ];
|
||||||
|
@ -70,9 +82,18 @@ in
|
||||||
group = "netdata";
|
group = "netdata";
|
||||||
mode = "0600";
|
mode = "0600";
|
||||||
text = ''
|
text = ''
|
||||||
[global]
|
[db]
|
||||||
page cache size = 32
|
mode = dbengine
|
||||||
dbengine multihost disk space = 23058
|
storage tiers = 3
|
||||||
|
update every = 1
|
||||||
|
dbengine multihost disk space MB = 23000
|
||||||
|
dbengine page cache size MB = 384
|
||||||
|
dbengine tier 1 update every iterations = 60
|
||||||
|
dbengine tier 1 multihost disk space MB = 10000
|
||||||
|
dbengine tier 1 page cache size MB = 384
|
||||||
|
dbengine tier 2 update every iterations = 3600
|
||||||
|
dbengine tier 2 multihost disk space MB = 5000
|
||||||
|
dbengine tier 2 page cache size MB = 384
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -150,9 +171,9 @@ in
|
||||||
proxyPass = "http://localhost:19999";
|
proxyPass = "http://localhost:19999";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# For large authentication-authorization headers
|
# For large authentication-authorization headers
|
||||||
proxy_buffer_size 256k;
|
proxy_buffer_size 128k;
|
||||||
proxy_buffers 4 512k;
|
proxy_buffers 4 256k;
|
||||||
proxy_busy_buffers_size 512k;
|
proxy_busy_buffers_size 256k;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue