Skip to content

Commit f3d7162

Browse files
committed
in_windows_exporter_metrics: Add support for rtc metrics of CPU
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 56a8548 commit f3d7162

File tree

1 file changed

+9
-0
lines changed
  • plugins/in_windows_exporter_metrics

1 file changed

+9
-0
lines changed

plugins/in_windows_exporter_metrics/we_cpu.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ struct we_perflib_metric_source full_metric_sources[] = {
151151
"% Processor Performance",
152152
NULL),
153153

154+
WE_PERFLIB_METRIC_SOURCE("processor_rtc_total",
155+
"% Processor Utility,secondvalue",
156+
NULL),
157+
154158
WE_PERFLIB_TERMINATOR_SOURCE()
155159
};
156160

@@ -219,6 +223,11 @@ struct we_perflib_metric_spec full_metric_specs[] =
219223
"incremented while executing instructions",
220224
"core"),
221225

226+
WE_PERFLIB_COUNTER_SPEC("processor_rtc_total",
227+
"Processor RTC represents the number of RTC ticks " \
228+
"made since the system booted.",
229+
"core"),
230+
222231
WE_PERFLIB_TERMINATOR_SPEC()
223232
};
224233

0 commit comments

Comments
 (0)