From 12544a7c07cb459989621df444f1b124cd893ef5 Mon Sep 17 00:00:00 2001 From: petersveter108 <65238126+petersveter108@users.noreply.github.com> Date: Thu, 21 Jan 2021 23:14:52 +0100 Subject: [PATCH] Log hardware utilization messages as warnings instead of errors (#651) --- metrics/alerting.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metrics/alerting.go b/metrics/alerting.go index 942b125a2..34fcea01c 100644 --- a/metrics/alerting.go +++ b/metrics/alerting.go @@ -23,7 +23,7 @@ func handleCPUAlerting() { avg := recentAverage(Metrics.CPUUtilizations) if avg > maxCPUAlertingThresholdPCT { - log.Errorf(alertingError, "CPU", maxCPUAlertingThresholdPCT) + log.Warnf(alertingError, "CPU", maxCPUAlertingThresholdPCT) } } @@ -34,7 +34,7 @@ func handleRAMAlerting() { avg := recentAverage(Metrics.RAMUtilizations) if avg > maxRAMAlertingThresholdPCT { - log.Errorf(alertingError, "memory", maxRAMAlertingThresholdPCT) + log.Warnf(alertingError, "memory", maxRAMAlertingThresholdPCT) } } @@ -46,7 +46,7 @@ func handleDiskAlerting() { avg := recentAverage(Metrics.DiskUtilizations) if avg > maxDiskAlertingThresholdPCT { - log.Errorf(alertingError, "disk", maxRAMAlertingThresholdPCT) + log.Warnf(alertingError, "disk", maxRAMAlertingThresholdPCT) } }