Skip to content

Commit f1e0e83

Browse files
SuperQchengjoey
andauthored
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 <zchengjoey@gmail.com> Signed-off-by: Ben Kochie <superq@gmail.com> * Release v1.8.2 * [BUGFIX] Fix CPU pressure metric collection #3054 Signed-off-by: Ben Kochie <superq@gmail.com> --------- Signed-off-by: joey <zchengjoey@gmail.com> Signed-off-by: Ben Kochie <superq@gmail.com> Co-authored-by: chengjoey <30427474+chengjoey@users.noreply.github.com>
1 parent 400c397 commit f1e0e83

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* [ENHANCEMENT]
66
* [BUGFIX]
77

8+
## 1.8.2 / 2024-06-19
9+
10+
* [BUGFIX] Fix CPU pressure metric collection #3054
11+
812
## 1.8.1 / 2024-05-16
913

1014
* [BUGFIX] Fix CPU seconds on Solaris #2963

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.8.1
1+
1.8.2

collector/pressure_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (c *pressureStatsCollector) Update(ch chan<- prometheus.Metric) error {
106106
level.Debug(c.logger).Log("msg", "pressure information returned no 'some' data")
107107
return ErrNoData
108108
}
109-
if vals.Full == nil {
109+
if vals.Full == nil && res != "cpu" {
110110
level.Debug(c.logger).Log("msg", "pressure information returned no 'full' data")
111111
return ErrNoData
112112
}

0 commit comments

Comments
 (0)