Skip to content

Commit 242cb37

Browse files
authored
lower the log level for failing to get PSI metrics
There are cases where `/proc/self/cgroup` file exists but `/sys/fs/cgroup//cpu.pressure` does not, causing the error log, user cannot fix it. It only causes no data in the PSI related pannels, which should be fine. fixes VictoriaMetrics/VictoriaMetrics#9161
1 parent 75b6cfb commit 242cb37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

process_metrics_linux.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ func writeProcessMemMetrics(w io.Writer) {
240240
WriteGaugeUint64(w, "process_resident_memory_anon_bytes", ms.rssAnon)
241241
WriteGaugeUint64(w, "process_resident_memory_file_bytes", ms.rssFile)
242242
WriteGaugeUint64(w, "process_resident_memory_shared_bytes", ms.rssShmem)
243-
244243
}
245244

246245
func getMemStats(path string) (*memStats, error) {
@@ -321,7 +320,7 @@ func psiTotalSecs(microsecs uint64) float64 {
321320
var psiMetricsStart = func() *psiMetrics {
322321
m, err := getPSIMetrics()
323322
if err != nil {
324-
log.Printf("ERROR: metrics: disable exposing PSI metrics because of failed init: %s", err)
323+
log.Printf("INFO: metrics: disable exposing PSI metrics because of failed init: %s", err)
325324
return nil
326325
}
327326
return m

0 commit comments

Comments
 (0)