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>
This commit is contained in:
Ben Kochie 2024-07-14 07:52:11 -04:00 committed by GitHub
parent 400c397993
commit f1e0e8360a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -1 +1 @@
1.8.1
1.8.2

View File

@ -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
}