Skip to content

Commit ffb4689

Browse files
authored
Merge branch 'master' into master
2 parents c6235cb + 38d32a3 commit ffb4689

26 files changed

+187
-113
lines changed

.circleci/config.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ executors:
77
# should also be updated.
88
golang:
99
docker:
10-
- image: cimg/go:1.23
10+
- image: cimg/go:1.24
1111
arm:
1212
docker:
13-
- image: cimg/go:1.23
13+
- image: cimg/go:1.24
1414
resource_class: arm.medium
1515

1616
jobs:
@@ -42,7 +42,7 @@ jobs:
4242
- run: git diff --exit-code
4343
build:
4444
machine:
45-
image: ubuntu-2204:current
45+
image: ubuntu-2404:current
4646
parallelism: 3
4747
steps:
4848
- prometheus/setup_environment
@@ -68,9 +68,9 @@ jobs:
6868
destination: /build
6969
test_docker:
7070
machine:
71-
image: ubuntu-2204:current
71+
image: ubuntu-2404:current
7272
environment:
73-
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.23-base
73+
DOCKER_TEST_IMAGE_NAME: quay.io/prometheus/golang-builder:1.24-base
7474
REPO_PATH: github.com/prometheus/node_exporter
7575
steps:
7676
- prometheus/setup_environment

.github/workflows/bsd.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ permissions:
1313

1414
env:
1515
GNU_TAR_VERSION: "1.35"
16-
GO_VERSION_DRAGONFLY: "1.23.3"
16+
GO_VERSION_DRAGONFLY: "1.24.1"
1717
GO_VERSION_FREEBSD: "123"
18-
GO_VERSION_NETBSD: "1.23.3"
18+
GO_VERSION_NETBSD: "1.24.1"
1919
GO_VERSION_OPENBSD: "1.23.1"
20-
GO_VERSION_SOLARIS: "1.23.3"
20+
GO_VERSION_SOLARIS: "1.24.1"
2121

2222
# To spin up one of the VMs below, see the "Debug Shell" section here: https://github.com/vmactions
2323
jobs:
@@ -26,9 +26,9 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout the repository
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3030
- name: test-e2e
31-
uses: vmactions/freebsd-vm@v1
31+
uses: vmactions/freebsd-vm@8873d98fd1413b5977cb2f7348fe329775159892 # v1.1.9
3232
with:
3333
copyback: false
3434
envs: 'GO_VERSION_FREEBSD GNU_TAR_VERSION'
@@ -73,9 +73,9 @@ jobs:
7373
runs-on: ubuntu-latest
7474
steps:
7575
- name: Checkout the repository
76-
uses: actions/checkout@v4
76+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7777
- name: test-e2e
78-
uses: vmactions/openbsd-vm@v1
78+
uses: vmactions/openbsd-vm@7ac70b6de6f33efc74a90c1964afa3bcf0ee4401 # v1.1.6
7979
with:
8080
copyback: false
8181
envs: 'GO_VERSION_OPENBSD GNU_TAR_VERSION'
@@ -119,9 +119,9 @@ jobs:
119119
runs-on: ubuntu-latest
120120
steps:
121121
- name: Checkout the repository
122-
uses: actions/checkout@v4
122+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
123123
- name: test-e2e
124-
uses: vmactions/netbsd-vm@v1
124+
uses: vmactions/netbsd-vm@46a58bbf03682b4cb24142b97fa315ae52bed573 # v1.1.8
125125
with:
126126
copyback: false
127127
envs: 'GO_VERSION_NETBSD GNU_TAR_VERSION'
@@ -167,9 +167,9 @@ jobs:
167167
runs-on: ubuntu-latest
168168
steps:
169169
- name: Checkout the repository
170-
uses: actions/checkout@v4
170+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
171171
- name: test-e2e
172-
uses: vmactions/dragonflybsd-vm@v1
172+
uses: vmactions/dragonflybsd-vm@e3c420e8a2362c2496fca6e76a291abd46f5d8e7 # v1.1.0
173173
with:
174174
copyback: false
175175
envs: 'GO_VERSION_DRAGONFLY'
@@ -217,9 +217,9 @@ jobs:
217217
runs-on: ubuntu-latest
218218
steps:
219219
- name: Checkout the repository
220-
uses: actions/checkout@v4
220+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
221221
- name: test-e2e
222-
uses: vmactions/solaris-vm@v1
222+
uses: vmactions/solaris-vm@cc8f82fa1a7cc746153ec3f71bf11f311f16e225 # v1.1.1
223223
with:
224224
copyback: false
225225
envs: 'GO_VERSION_SOLARIS'
@@ -276,7 +276,7 @@ jobs:
276276
runs-on: macos-latest
277277
steps:
278278
- name: Checkout the repository
279-
uses: actions/checkout@v4
279+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
280280
- name: Install dependencies
281281
run: |
282282
brew install \

.github/workflows/golangci-lint.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
- name: Checkout repository
2727
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828
- name: Install Go
29-
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
29+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
3030
with:
31-
go-version: 1.23.x
31+
go-version: 1.24.x
3232
- name: Install snmp_exporter/generator dependencies
3333
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
3434
if: github.repository == 'prometheus/snmp_exporter'
3535
- name: Lint
36-
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0
36+
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
3737
with:
3838
args: --verbose
39-
version: v1.63.4
39+
version: v1.64.6

.promu-cgo.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
go:
22
# Whenever the Go version is updated here, .circle/config.yml and
33
# .promu.yml should also be updated.
4-
version: 1.23
4+
version: 1.24
55
cgo: true
66
repository:
77
path: github.com/prometheus/node_exporter

.promu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
go:
22
# Whenever the Go version is updated here, .circle/config.yml and
33
# .promu-cgo.yml should also be updated.
4-
version: 1.23
4+
version: 1.24
55
repository:
66
path: github.com/prometheus/node_exporter
77
build:

Makefile.common

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_
6161
SKIP_GOLANGCI_LINT :=
6262
GOLANGCI_LINT :=
6363
GOLANGCI_LINT_OPTS ?=
64-
GOLANGCI_LINT_VERSION ?= v1.63.4
64+
GOLANGCI_LINT_VERSION ?= v1.64.6
6565
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64.
6666
# windows isn't included here because of the path separator being different.
6767
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))

collector/diskstats_linux.go

-6
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,9 @@ func getUdevDeviceProperties(major, minor uint32) (udevInfo, error) {
398398

399399
line = strings.TrimPrefix(line, udevDevicePropertyPrefix)
400400

401-
/* TODO: After we drop support for Go 1.17, the condition below can be simplified to:
402-
403401
if name, value, found := strings.Cut(line, "="); found {
404402
info[name] = value
405403
}
406-
*/
407-
if fields := strings.SplitN(line, "=", 2); len(fields) == 2 {
408-
info[fields[0]] = fields[1]
409-
}
410404
}
411405

412406
return info, nil

collector/ethtool_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func (c *ethtoolCollector) Update(ch chan<- prometheus.Metric) error {
446446
}
447447
}
448448

449-
if stats == nil || len(stats) < 1 {
449+
if len(stats) == 0 {
450450
// No stats returned; device does not support ethtool stats.
451451
continue
452452
}

collector/filesystem_common.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ type filesystemStats struct {
8989
labels filesystemLabels
9090
size, free, avail float64
9191
files, filesFree float64
92-
purgeable *float64
92+
purgeable float64
9393
ro, deviceError float64
9494
}
9595

@@ -232,11 +232,10 @@ func (c *filesystemCollector) Update(ch chan<- prometheus.Metric) error {
232232
c.mountInfoDesc, prometheus.GaugeValue,
233233
1.0, s.labels.device, s.labels.major, s.labels.minor, s.labels.mountPoint,
234234
)
235-
if s.purgeable != nil {
235+
if s.purgeable >= 0 {
236236
ch <- prometheus.MustNewConstMetric(
237237
c.purgeableDesc, prometheus.GaugeValue,
238-
*s.purgeable, s.labels.device, s.labels.mountPoint,
239-
s.labels.fsType, s.labels.deviceError,
238+
s.purgeable, s.labels.device, s.labels.mountPoint, s.labels.fsType, s.labels.deviceError,
240239
)
241240
}
242241
}

collector/filesystem_macos.go

+8-9
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,22 @@ package collector
2020
#cgo CFLAGS: -x objective-c
2121
#cgo LDFLAGS: -framework Foundation
2222
#import <Foundation/Foundation.h>
23-
Float64 *purgeable(char *path) {
23+
Float64 purgeable(char *path) {
2424
CFNumberRef tmp;
25-
Float64 *value;
2625
NSError *error = nil;
2726
NSString *str = [NSString stringWithUTF8String:path];
2827
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:str];
2928
NSDictionary *results = [fileURL resourceValuesForKeys:@[NSURLVolumeAvailableCapacityForImportantUsageKey] error:&error];
3029
if (results) {
31-
if ((tmp = CFDictionaryGetValue((CFDictionaryRef)results, NSURLVolumeAvailableCapacityForImportantUsageKey)) == NULL)
32-
return NULL;
33-
value = (Float64 *)malloc(sizeof(Float64));
34-
if (CFNumberGetValue(tmp, kCFNumberFloat64Type, value)) {
30+
if ((tmp = CFDictionaryGetValue((CFDictionaryRef)results, NSURLVolumeAvailableCapacityForImportantUsageKey)) == NULL) {
31+
return -1.0f;
32+
}
33+
Float64 value;
34+
if (CFNumberGetValue(tmp, kCFNumberFloat64Type, &value)) {
3535
return value;
3636
}
3737
}
38-
free(value);
39-
return NULL;
38+
return -1.0f;
4039
}
4140
*/
4241
import "C"
@@ -100,7 +99,7 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) {
10099
avail: float64(mnt[i].f_bavail) * float64(mnt[i].f_bsize),
101100
files: float64(mnt[i].f_files),
102101
filesFree: float64(mnt[i].f_ffree),
103-
purgeable: (*float64)(C.purgeable(C.CString(mountpoint))),
102+
purgeable: float64(C.purgeable(C.CString(mountpoint))),
104103
ro: ro,
105104
})
106105
}

collector/fixtures/e2e-64k-page-output.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# HELP go_gc_duration_seconds A summary of the wall-time pause (stop-the-world) duration in garbage collection cycles.
22
# TYPE go_gc_duration_seconds summary
3-
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent
3+
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent.
44
# TYPE go_gc_gogc_percent gauge
5-
# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes
5+
# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes.
66
# TYPE go_gc_gomemlimit_bytes gauge
77
# HELP go_goroutines Number of goroutines that currently exist.
88
# TYPE go_goroutines gauge
@@ -52,7 +52,7 @@
5252
# TYPE go_memstats_stack_sys_bytes gauge
5353
# HELP go_memstats_sys_bytes Number of bytes obtained from system. Equals to /memory/classes/total:byte.
5454
# TYPE go_memstats_sys_bytes gauge
55-
# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads
55+
# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads.
5656
# TYPE go_sched_gomaxprocs_threads gauge
5757
# HELP go_threads Number of OS threads created.
5858
# TYPE go_threads gauge

collector/fixtures/e2e-output-darwin.txt

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# HELP go_gc_duration_seconds A summary of the wall-time pause (stop-the-world) duration in garbage collection cycles.
22
# TYPE go_gc_duration_seconds summary
3-
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent
3+
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent.
44
# TYPE go_gc_gogc_percent gauge
5-
# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes
5+
# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes.
66
# TYPE go_gc_gomemlimit_bytes gauge
77
# HELP go_goroutines Number of goroutines that currently exist.
88
# TYPE go_goroutines gauge
@@ -52,7 +52,7 @@
5252
# TYPE go_memstats_stack_sys_bytes gauge
5353
# HELP go_memstats_sys_bytes Number of bytes obtained from system. Equals to /memory/classes/total:byte.
5454
# TYPE go_memstats_sys_bytes gauge
55-
# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads
55+
# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads.
5656
# TYPE go_sched_gomaxprocs_threads gauge
5757
# HELP go_threads Number of OS threads created.
5858
# TYPE go_threads gauge
@@ -251,6 +251,20 @@ node_xfrm_out_state_proto_error_packets_total 4542
251251
# HELP node_xfrm_out_state_seq_error_packets_total Sequence error i.e. Sequence number overflow
252252
# TYPE node_xfrm_out_state_seq_error_packets_total counter
253253
node_xfrm_out_state_seq_error_packets_total 543
254+
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
255+
# TYPE process_cpu_seconds_total counter
256+
# HELP process_max_fds Maximum number of open file descriptors.
257+
# TYPE process_max_fds gauge
258+
# HELP process_open_fds Number of open file descriptors.
259+
# TYPE process_open_fds gauge
260+
# HELP process_resident_memory_bytes Resident memory size in bytes.
261+
# TYPE process_resident_memory_bytes gauge
262+
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
263+
# TYPE process_start_time_seconds gauge
264+
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
265+
# TYPE process_virtual_memory_bytes gauge
266+
# HELP process_virtual_memory_max_bytes Maximum amount of virtual memory available in bytes.
267+
# TYPE process_virtual_memory_max_bytes gauge
254268
# HELP promhttp_metric_handler_errors_total Total number of internal errors encountered by the promhttp metric handler.
255269
# TYPE promhttp_metric_handler_errors_total counter
256270
promhttp_metric_handler_errors_total{cause="encoding"} 0

collector/fixtures/e2e-output-dragonfly.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# HELP go_gc_duration_seconds A summary of the wall-time pause (stop-the-world) duration in garbage collection cycles.
22
# TYPE go_gc_duration_seconds summary
3-
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent
3+
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent.
44
# TYPE go_gc_gogc_percent gauge
5-
# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes
5+
# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes.
66
# TYPE go_gc_gomemlimit_bytes gauge
77
# HELP go_goroutines Number of goroutines that currently exist.
88
# TYPE go_goroutines gauge
@@ -52,7 +52,7 @@
5252
# TYPE go_memstats_stack_sys_bytes gauge
5353
# HELP go_memstats_sys_bytes Number of bytes obtained from system. Equals to /memory/classes/total:byte.
5454
# TYPE go_memstats_sys_bytes gauge
55-
# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads
55+
# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads.
5656
# TYPE go_sched_gomaxprocs_threads gauge
5757
# HELP go_threads Number of OS threads created.
5858
# TYPE go_threads gauge

collector/fixtures/e2e-output-freebsd.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# HELP go_gc_duration_seconds A summary of the wall-time pause (stop-the-world) duration in garbage collection cycles.
22
# TYPE go_gc_duration_seconds summary
3-
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent
3+
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent.
44
# TYPE go_gc_gogc_percent gauge
5-
# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes
5+
# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes.
66
# TYPE go_gc_gomemlimit_bytes gauge
77
# HELP go_goroutines Number of goroutines that currently exist.
88
# TYPE go_goroutines gauge
@@ -52,7 +52,7 @@
5252
# TYPE go_memstats_stack_sys_bytes gauge
5353
# HELP go_memstats_sys_bytes Number of bytes obtained from system. Equals to /memory/classes/total:byte.
5454
# TYPE go_memstats_sys_bytes gauge
55-
# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads
55+
# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads.
5656
# TYPE go_sched_gomaxprocs_threads gauge
5757
# HELP go_threads Number of OS threads created.
5858
# TYPE go_threads gauge

collector/fixtures/e2e-output-netbsd.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# HELP go_gc_duration_seconds A summary of the wall-time pause (stop-the-world) duration in garbage collection cycles.
22
# TYPE go_gc_duration_seconds summary
3-
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent
3+
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent.
44
# TYPE go_gc_gogc_percent gauge
5-
# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes
5+
# HELP go_gc_gomemlimit_bytes Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes.
66
# TYPE go_gc_gomemlimit_bytes gauge
77
# HELP go_goroutines Number of goroutines that currently exist.
88
# TYPE go_goroutines gauge
@@ -52,7 +52,7 @@
5252
# TYPE go_memstats_stack_sys_bytes gauge
5353
# HELP go_memstats_sys_bytes Number of bytes obtained from system. Equals to /memory/classes/total:byte.
5454
# TYPE go_memstats_sys_bytes gauge
55-
# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads
55+
# HELP go_sched_gomaxprocs_threads The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads.
5656
# TYPE go_sched_gomaxprocs_threads gauge
5757
# HELP go_threads Number of OS threads created.
5858
# TYPE go_threads gauge

0 commit comments

Comments
 (0)