Skip to content

Commit 5989bbd

Browse files
authored
Merge branch 'master' into add-drm-chip
2 parents 6f6e5f5 + 6b2468c commit 5989bbd

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
123123
with:
124124
persist-credentials: false
125-
- uses: prometheus/promci/publish_main@769ee18070cd21cfc2a24fa912349fd3e48dee58 # v0.6.0
125+
- uses: prometheus/promci/publish_main@42c3c84c865e5c1ab78543b929f7341eb2ef6123 # v0.6.1
126126
with:
127127
docker_hub_login: ${{ secrets.docker_hub_login }}
128128
docker_hub_password: ${{ secrets.docker_hub_password }}
@@ -138,7 +138,7 @@ jobs:
138138
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
139139
with:
140140
persist-credentials: false
141-
- uses: prometheus/promci/publish_release@769ee18070cd21cfc2a24fa912349fd3e48dee58 # v0.6.0
141+
- uses: prometheus/promci/publish_release@42c3c84c865e5c1ab78543b929f7341eb2ef6123 # v0.6.1
142142
with:
143143
docker_hub_login: ${{ secrets.docker_hub_login }}
144144
docker_hub_password: ${{ secrets.docker_hub_password }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* [ENHANCEMENT]
66
* [BUGFIX]
77

8+
## 1.11.1 / 2026-04-07
9+
10+
* [BUGFIX] Fix kernel_hung for no data #3613
11+
812
## 1.11.0 / 2026-04-04
913

1014
* [CHANGE] Adds distroless container image. #3592

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.0
1+
1.11.1

collector/kernel_hung_linux.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
package collector
1717

1818
import (
19+
"errors"
1920
"fmt"
2021
"log/slog"
22+
"os"
2123

2224
"github.com/prometheus/client_golang/prometheus"
2325
"github.com/prometheus/procfs"
@@ -54,6 +56,10 @@ var (
5456
func (c *kernelHungCollector) Update(ch chan<- prometheus.Metric) error {
5557
kernelHung, err := c.fs.KernelHung()
5658
if err != nil {
59+
if errors.Is(err, os.ErrNotExist) {
60+
c.logger.Debug("hung_task_detect_count does not exist")
61+
return ErrNoData
62+
}
5763
return err
5864
}
5965

0 commit comments

Comments
 (0)