From 98ed5301130c240c078d2d1be56e6fa0181c1800 Mon Sep 17 00:00:00 2001 From: Guo-Rong Koh Date: Thu, 15 Jan 2026 10:47:26 +1030 Subject: [PATCH] collector/cpu: replace 'wait' with 'intr' for Solaris Addresses #3238. Replace the kernel 'wait' stat with 'intr' which is supported by both Solaris and Illumos kernels. Signed-off-by: Guo-Rong Koh --- collector/cpu_solaris.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/cpu_solaris.go b/collector/cpu_solaris.go index 471d29f03c..fcc0638843 100644 --- a/collector/cpu_solaris.go +++ b/collector/cpu_solaris.go @@ -60,9 +60,9 @@ func (c *cpuCollector) Update(ch chan<- prometheus.Metric) error { for k, v := range map[string]string{ "idle": "cpu_nsec_idle", + "intr": "cpu_nsec_intr", "kernel": "cpu_nsec_kernel", "user": "cpu_nsec_user", - "wait": "cpu_nsec_wait", } { kstatValue, err := ksCPU.GetNamed(v) if err != nil {