provide defaults for threshold_configs

This commit is contained in:
Andreas Wrede
2026-04-10 07:47:39 -04:00
parent 812bbf8555
commit d281ac5a70
4 changed files with 66 additions and 10 deletions
+31
View File
@@ -69,6 +69,37 @@ SERVER_DEFAULTS = {
"thresholds": {},
}
THRESHOLD_DEFAULTS = {
'thresholds': {
'cpu_monitor': {
'cpu_percent': {
'warning': 80.0,
'critical': 90.0
}
},
'memory_monitor': {
'percent': {
'warning': 85.0,
'critical': 95.0
}
},
'disk_monitor': {
'partitions': {
'/': {
'percent': {
'warning': 85.0,
'critical': 90.0
}
}
}
},
'rtt': {
'warning': 200,
'critical': 250.0
}
}
}
def load_config(path=None):
"""Load configuration from a YAML file and merge with server defaults.