From f1e0e8360aa60b6cb5e5cc1560bed348fc2c1895 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Sun, 14 Jul 2024 07:52:11 -0400 Subject: [PATCH] Release v1.8.2 (#3055) * fix pressure metric collection fails on systems that do not expose a full CPU stat #3051 (#3054) Signed-off-by: joey Signed-off-by: Ben Kochie * Release v1.8.2 * [BUGFIX] Fix CPU pressure metric collection #3054 Signed-off-by: Ben Kochie --------- Signed-off-by: joey Signed-off-by: Ben Kochie Co-authored-by: chengjoey <30427474+chengjoey@users.noreply.github.com> --- CHANGELOG.md | 4 ++++ VERSION | 2 +- collector/pressure_linux.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79ad9270a4..ee248324cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ * [ENHANCEMENT] * [BUGFIX] +## 1.8.2 / 2024-06-19 + +* [BUGFIX] Fix CPU pressure metric collection #3054 + ## 1.8.1 / 2024-05-16 * [BUGFIX] Fix CPU seconds on Solaris #2963 diff --git a/VERSION b/VERSION index a8fdfda1c7..53adb84c82 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.8.1 +1.8.2 diff --git a/collector/pressure_linux.go b/collector/pressure_linux.go index 4dbdc5393d..f64d004fa6 100644 --- a/collector/pressure_linux.go +++ b/collector/pressure_linux.go @@ -106,7 +106,7 @@ func (c *pressureStatsCollector) Update(ch chan<- prometheus.Metric) error { level.Debug(c.logger).Log("msg", "pressure information returned no 'some' data") return ErrNoData } - if vals.Full == nil { + if vals.Full == nil && res != "cpu" { level.Debug(c.logger).Log("msg", "pressure information returned no 'full' data") return ErrNoData }