diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-11-03 14:41:47 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-11-03 14:41:47 +0100 |
commit | 7ad4966f41db0669a77c7a6ee7f87f0d4e586b0c (patch) | |
tree | de5a835b7028284f270978afa9758b03ce8f2cbc | |
parent | 8fd0df08c4487e440f0f5884f193a96057abad43 (diff) | |
download | Nix-7ad4966f41db0669a77c7a6ee7f87f0d4e586b0c.tar.gz Nix-7ad4966f41db0669a77c7a6ee7f87f0d4e586b0c.tar.zst Nix-7ad4966f41db0669a77c7a6ee7f87f0d4e586b0c.zip |
Adjust load warnings for monitoring
-rw-r--r-- | modules/private/monitoring/default.nix | 3 | ||||
-rw-r--r-- | modules/private/monitoring/objects_common.nix | 8 | ||||
m--------- | nixops/secrets | 0 |
3 files changed, 8 insertions, 3 deletions
diff --git a/modules/private/monitoring/default.nix b/modules/private/monitoring/default.nix index 1590fd0..344e369 100644 --- a/modules/private/monitoring/default.nix +++ b/modules/private/monitoring/default.nix | |||
@@ -91,7 +91,8 @@ let | |||
91 | }; | 91 | }; |
92 | monitoring-1 = { | 92 | monitoring-1 = { |
93 | processWarn = "50"; processAlert = "60"; | 93 | processWarn = "50"; processAlert = "60"; |
94 | loadWarn = "1.0"; loadAlert = "2.0"; | 94 | loadWarn = "4.0"; loadAlert = "6.0"; |
95 | load15Warn = "1.0"; load15Alert = "2.0"; | ||
95 | interface = "ens3"; | 96 | interface = "ens3"; |
96 | }; | 97 | }; |
97 | }; | 98 | }; |
diff --git a/modules/private/monitoring/objects_common.nix b/modules/private/monitoring/objects_common.nix index 25f8124..82043eb 100644 --- a/modules/private/monitoring/objects_common.nix +++ b/modules/private/monitoring/objects_common.nix | |||
@@ -4,7 +4,11 @@ | |||
4 | , processWarn ? "250" | 4 | , processWarn ? "250" |
5 | , processAlert ? "400" | 5 | , processAlert ? "400" |
6 | , loadWarn ? "8.0" | 6 | , loadWarn ? "8.0" |
7 | , load5Warn ? loadWarn | ||
8 | , load15Warn ? load5Warn | ||
7 | , loadAlert ? "10.0" | 9 | , loadAlert ? "10.0" |
10 | , load5Alert ? loadAlert | ||
11 | , load15Alert ? load5Alert | ||
8 | , mdadm | 12 | , mdadm |
9 | , sudo | 13 | , sudo |
10 | , master | 14 | , master |
@@ -70,8 +74,8 @@ in | |||
70 | use = "local-service"; | 74 | use = "local-service"; |
71 | check_command = [ | 75 | check_command = [ |
72 | "check_local_load" | 76 | "check_local_load" |
73 | "${loadWarn},${loadWarn},${loadWarn}" | 77 | "${loadWarn},${load5Warn},${load15Warn}" |
74 | "${loadAlert},${loadAlert},${loadAlert}" | 78 | "${loadAlert},${load5Alert},${load15Alert}" |
75 | ]; | 79 | ]; |
76 | } | 80 | } |
77 | { | 81 | { |
diff --git a/nixops/secrets b/nixops/secrets | |||
Subproject 3475398eed524be65d0516cf2a648b20a2418f3 | Subproject 6a6ab7924a93cc36aab7ce3215263135620446a | ||