addGetStat("user-msec", getUserTimeMsec);
addGetStat("sys-msec", getSysTimeMsec);
+#ifdef __linux__
+ addGetStat("cpu-iowait", boost::bind(getCPUIOWait, string()));
+ addGetStat("cpu-steal", boost::bind(getCPUSteal, string()));
+#endif
+
for(unsigned int n=0; n < g_numThreads; ++n)
addGetStat("cpu-msec-thread-"+std::to_string(n), boost::bind(&doGetThreadCPUMsec, n));
^^^^^^^^^^^^^^^^^
shows the number of milliseconds spent in thread n. Available since 4.1.12.
+cpu-iowait
+^^^^^^^^^^
+.. versionadded:: 4.4
+
+Time spent waiting for I/O to complete by the whole system.
+
+cpu-steal
+^^^^^^^^^
+.. versionadded:: 4.4
+
+Stolen time, which is the time spent by the whole system in other operating systems when running in a virtualized environment.
+
dlg-only-drops
^^^^^^^^^^^^^^
number of records dropped because of :ref:`setting-delegation-only` setting
{"udp-sndbuf-errors",
MetricDefinition(PrometheusMetricType::counter,
"From /proc/net/snmp SndbufErrors")},
+
+ {"cpu-iowait",
+ MetricDefinition(PrometheusMetricType::counter,
+ "Time spent waiting for I/O to complete by the whole system")},
+ {"cpu-steal",
+ MetricDefinition(PrometheusMetricType::counter,
+ "Stolen time, which is the time spent by the whole system in other operating systems when running in a virtualized environment")},
};
};