Skip to content

Commit aacf86d

Browse files
committed
Add units to panels
1 parent aa2cdc3 commit aacf86d

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

windows-observ-lib/panels.libsonnet

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -187,22 +187,25 @@ local utils = commonlib.utils;
187187
188188
A high number of context switches or interrupts can indicate that the system is overloaded or that there are problems with specific devices or processes.
189189
|||
190-
),
190+
)
191+
+ g.panel.timeSeries.standardOptions.withUnit('short'),
191192
systemExceptions:
192193
commonlib.panels.generic.timeSeries.base.new(
193194
'System calls and exceptions',
194195
targets=[
195196
t.windowsSystemExceptions,
196197
t.windowsSystemCalls,
197198
],
198-
),
199+
)
200+
+ g.panel.timeSeries.standardOptions.withUnit('short'),
199201
systemThreads:
200202
commonlib.panels.generic.timeSeries.base.new(
201203
'System threads',
202204
targets=[
203205
t.windowsSystemThreads,
204206
],
205-
),
207+
)
208+
+ g.panel.timeSeries.standardOptions.withUnit('short'),
206209
timeNtpStatus:
207210
commonlib.panels.system.statusHistory.ntp.new(
208211
'NTP status',
@@ -242,17 +245,19 @@ local utils = commonlib.utils;
242245
CPU usage by different modes.
243246
|||
244247
),
245-
cpuQueue: commonlib.panels.generic.timeSeries.base.new(
246-
'CPU average queue size',
247-
targets=[t.cpuQueue],
248-
description=|||
249-
The CPU average queue size in Windows, often referred to as the "Processor Queue Length" or "CPU Queue Length," is a metric that measures the number of threads or tasks waiting to be processed by the central processing unit (CPU) at a given moment.
250-
It is an essential performance indicator that reflects the workload and responsiveness of the CPU.
251-
When the CPU queue length is high, it indicates that there are more tasks in line for processing than the CPU can handle immediately.
248+
cpuQueue:
249+
commonlib.panels.generic.timeSeries.base.new(
250+
'CPU average queue size',
251+
targets=[t.cpuQueue],
252+
description=|||
253+
The CPU average queue size in Windows, often referred to as the "Processor Queue Length" or "CPU Queue Length," is a metric that measures the number of threads or tasks waiting to be processed by the central processing unit (CPU) at a given moment.
254+
It is an essential performance indicator that reflects the workload and responsiveness of the CPU.
255+
When the CPU queue length is high, it indicates that there are more tasks in line for processing than the CPU can handle immediately.
252256
253-
This can lead to system slowdowns, decreased responsiveness, and potential performance issues. High CPU queue lengths are often associated with CPU saturation, where the CPU is struggling to keep up with the demands placed on it.
254-
|||
255-
),
257+
This can lead to system slowdowns, decreased responsiveness, and potential performance issues. High CPU queue lengths are often associated with CPU saturation, where the CPU is struggling to keep up with the demands placed on it.
258+
|||
259+
)
260+
+ g.panel.timeSeries.standardOptions.withUnit('short'),
256261
memoryTotalBytes: commonlib.panels.memory.stat.total.new(targets=[t.memoryTotalBytes]),
257262
memoryPageTotalBytes:
258263
commonlib.panels.memory.stat.total.new(

0 commit comments

Comments
 (0)