S.declare("user-msec", "Number of msec spent in user time", getSysUserTimeMsec);
#ifdef __linux__
- S.declare("cpu-iowait", "Time spent waiting for I/O to complete by the whole system", getCPUIOWait);
- S.declare("cpu-steal", "Stolen time, which is the time spent by the whole system in other operating systems when running in a virtualized environment", getCPUSteal);
+ S.declare("cpu-iowait", "Time spent waiting for I/O to complete by the whole system, in units of USER_HZ", getCPUIOWait);
+ S.declare("cpu-steal", "Stolen time, which is the time spent by the whole system in other operating systems when running in a virtualized environment, in units of USER_HZ", getCPUSteal);
#endif
S.declare("meta-cache-size", "Number of entries in the metadata cache", DNSSECKeeper::dbdnssecCacheSizes);
{ "empty-queries", MetricDefinition(PrometheusMetricType::counter, "Number of empty queries received from clients")},
{ "cache-hits", MetricDefinition(PrometheusMetricType::counter, "Number of times an answer was retrieved from cache")},
{ "cache-misses", MetricDefinition(PrometheusMetricType::counter, "Number of times an answer not found in the cache")},
- { "cpu-iowait", MetricDefinition(PrometheusMetricType::counter, "Time waiting for I/O to complete by the whole system")},
+ { "cpu-iowait", MetricDefinition(PrometheusMetricType::counter, "Time waiting for I/O to complete by the whole system, in units of USER_HZ")},
{ "cpu-user-msec", MetricDefinition(PrometheusMetricType::counter, "Milliseconds spent by dnsdist in the user state")},
- { "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")},
+ { "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, in units of USER_HZ")},
{ "cpu-sys-msec", MetricDefinition(PrometheusMetricType::counter, "Milliseconds spent by dnsdist in the system state")},
{ "fd-usage", MetricDefinition(PrometheusMetricType::gauge, "Number of currently used file descriptors")},
{ "dyn-blocked", MetricDefinition(PrometheusMetricType::counter, "Number of queries dropped because of a dynamic block")},
----------
.. versionadded:: 1.5.0
-Time spent waiting for I/O to complete by the whole system.
+Time spent waiting for I/O to complete by the whole system, in units of USER_HZ.
cpu-steal
---------
.. versionadded:: 1.5.0
-Stolen time, which is the time spent by the whole system in other operating systems when running in a virtualized environment.
+Stolen time, which is the time spent by the whole system in other operating systems when running in a virtualized environment, in units of USER_HZ.
cpu-sys-msec
------------
^^^^^^^^^^
.. versionadded:: 4.4
-Time spent waiting for I/O to complete by the whole system.
+Time spent waiting for I/O to complete by the whole system, in units of USER_HZ.
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.
+Stolen time, which is the time spent by the whole system in other operating systems when running in a virtualized environment, in units of USER_HZ.
dlg-only-drops
^^^^^^^^^^^^^^
{"cpu-iowait",
MetricDefinition(PrometheusMetricType::counter,
- "Time spent waiting for I/O to complete by the whole system")},
+ "Time spent waiting for I/O to complete by the whole system, in units of USER_HZ")},
{"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")},
+ "Stolen time, which is the time spent by the whole system in other operating systems when running in a virtualized environment, in units of USER_HZ")},
};
};