Skip to content

Commit d2508bf

Browse files
authored
Merge branch 'prometheus:master' into master
2 parents 4660134 + 6cb0dcc commit d2508bf

9 files changed

Lines changed: 29 additions & 16 deletions

File tree

.dockerignore

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
data/
12
.build/
23
.tarballs/
34

4-
!.build/linux-amd64
5-
!.build/linux-arm64
6-
!.build/linux-armv7
7-
!.build/linux-ppc64le
8-
!.build/linux-riscv64
9-
!.build/linux-s390x
5+
!.build/linux-amd64/
6+
!.build/linux-arm64/
7+
!.build/linux-armv7/
8+
!.build/linux-ppc64le/
9+
!.build/linux-riscv64/
10+
!.build/linux-s390x/

.github/workflows/bsd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
- name: Checkout the repository
128128
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
129129
- name: test-e2e
130-
uses: vmactions/netbsd-vm@e04aec09540429f9cebb0e7941f7cd0c0fc3b44f # v1.3.6
130+
uses: vmactions/netbsd-vm@ca7ff0556959998c82761c34ea0c3c99fa084c48 # v1.3.7
131131
with:
132132
copyback: false
133133
envs: 'GO_VERSION GNU_TAR_VERSION'

.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

Makefile.common

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ ifneq ($(shell command -v gotestsum 2> /dev/null),)
5555
endif
5656
endif
5757

58-
PROMU_VERSION ?= 0.18.0
58+
PROMU_VERSION ?= 0.18.1
5959
PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
6060

6161
SKIP_GOLANGCI_LINT :=
6262
GOLANGCI_LINT :=
6363
GOLANGCI_LINT_OPTS ?=
64-
GOLANGCI_LINT_VERSION ?= v2.10.1
64+
GOLANGCI_LINT_VERSION ?= v2.11.4
6565
GOLANGCI_FMT_OPTS ?=
6666
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64.
6767
# windows isn't included here because of the path separator being different.
@@ -90,8 +90,10 @@ ifdef DOCKERFILE_PATH
9090
$(error DOCKERFILE_PATH is deprecated. Use DOCKERFILE_VARIANTS ?= $(DOCKERFILE_PATH) in the Makefile)
9191
endif
9292

93-
DOCKER_ARCHS ?= amd64
94-
DOCKERFILE_VARIANTS ?= Dockerfile $(wildcard Dockerfile.*)
93+
DOCKER_ARCHS ?= amd64 arm64 armv7 ppc64le riscv64 s390x
94+
DOCKERFILE_ARCH_EXCLUSIONS ?=
95+
DOCKER_REGISTRY_ARCH_EXCLUSIONS ?= quay.io:riscv64
96+
DOCKERFILE_VARIANTS ?= $(wildcard Dockerfile Dockerfile.*)
9597

9698
# Function to extract variant from Dockerfile label.
9799
# Returns the variant name from io.prometheus.image.variant label, or "default" if not found.

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
The Prometheus security policy, including how to report vulnerabilities, can be
44
found here:
55

6-
<https://prometheus.io/docs/operating/security/>
6+
[https://prometheus.io/docs/operating/security/](https://prometheus.io/docs/operating/security/)

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/diskstats_common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func newDiskstatsDeviceFilter(logger *slog.Logger) (deviceFilter, error) {
100100
}
101101
}
102102
if *diskstatsDeviceInclude != "" {
103-
if diskstatsDeviceExcludeSet {
103+
if diskstatsDeviceExcludeSet && *diskstatsDeviceExclude != "" {
104104
return deviceFilter{}, errors.New("device-exclude & device-include are mutually exclusive")
105105
}
106106
*diskstatsDeviceExclude = ""

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)