0

Log hardware utilization messages as warnings instead of errors (#651)

This commit is contained in:
petersveter108 2021-01-21 23:14:52 +01:00 committed by GitHub
parent 35f45b3aae
commit 12544a7c07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ func handleCPUAlerting() {
avg := recentAverage(Metrics.CPUUtilizations) avg := recentAverage(Metrics.CPUUtilizations)
if avg > maxCPUAlertingThresholdPCT { if avg > maxCPUAlertingThresholdPCT {
log.Errorf(alertingError, "CPU", maxCPUAlertingThresholdPCT) log.Warnf(alertingError, "CPU", maxCPUAlertingThresholdPCT)
} }
} }
@ -34,7 +34,7 @@ func handleRAMAlerting() {
avg := recentAverage(Metrics.RAMUtilizations) avg := recentAverage(Metrics.RAMUtilizations)
if avg > maxRAMAlertingThresholdPCT { if avg > maxRAMAlertingThresholdPCT {
log.Errorf(alertingError, "memory", maxRAMAlertingThresholdPCT) log.Warnf(alertingError, "memory", maxRAMAlertingThresholdPCT)
} }
} }
@ -46,7 +46,7 @@ func handleDiskAlerting() {
avg := recentAverage(Metrics.DiskUtilizations) avg := recentAverage(Metrics.DiskUtilizations)
if avg > maxDiskAlertingThresholdPCT { if avg > maxDiskAlertingThresholdPCT {
log.Errorf(alertingError, "disk", maxRAMAlertingThresholdPCT) log.Warnf(alertingError, "disk", maxRAMAlertingThresholdPCT)
} }
} }