diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-08 10:28:54 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-23 18:27:35 +0200 |
commit | 35ac52f8ef983d78104a27dc7f6242784691be15 (patch) | |
tree | 9a7ddf5dd47a0c1a10aae24b76ac0c18145f333a /modules/by-name/ru/rust-motd/module.nix | |
parent | modules/rust-motd: Use correct name for `fail_2_ban` section (diff) | |
download | nixos-server-35ac52f8ef983d78104a27dc7f6242784691be15.zip |
modules/rust-motd: Add new `cg_stats` and `load_avg` sections
Diffstat (limited to '')
-rw-r--r-- | modules/by-name/ru/rust-motd/module.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/by-name/ru/rust-motd/module.nix b/modules/by-name/ru/rust-motd/module.nix index 0f7a3fe..8d0939a 100644 --- a/modules/by-name/ru/rust-motd/module.nix +++ b/modules/by-name/ru/rust-motd/module.nix @@ -60,6 +60,14 @@ in { command = "cat ${bannerFile}"; }; + cg_stats = { + state_file = "/var/lib/rust-motd/cg_stats_state"; + threshold = 0.02; # When to start generating output for a cgroup + }; + load_avg = { + format = "Load (1, 5, 15 min.): {one:.02}, {five:.02}, {fifteen:.02}"; + }; + uptime = { prefix = "Uptime:"; }; |