]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Document that IO wait and steal metrics are in units of USER_HZ. 8783/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 10 Feb 2020 10:53:24 +0000 (11:53 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 10 Feb 2020 10:53:24 +0000 (11:53 +0100)
pdns/common_startup.cc
pdns/dnsdist-web.cc
pdns/dnsdistdist/docs/statistics.rst
pdns/recursordist/docs/metrics.rst
pdns/recursordist/rec_metrics.hh

index ab47d7c27f50b9083a3bb5912aaba603e98c0b9c..8da7f9c10c558c0f6812733f861c5483fdb36e32 100644 (file)
@@ -348,8 +348,8 @@ void declareStats(void)
   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);
index c246a40f4b63e1c2d17a6b5c923ddfe22e585719..63dd730ad26d1192938ec143956fff78b986e2c1 100644 (file)
@@ -80,9 +80,9 @@ const std::map<std::string, MetricDefinition> MetricDefinitionStorage::metrics{
   { "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")},
index 5f298826ff98744a5262736c04e804a18d23b0d1..c6456ee5c83dc2d65500248d6d2034c4bc4333c7 100644 (file)
@@ -38,13 +38,13 @@ cpu-iowait
 ----------
 .. 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
 ------------
index 52e7f9cc8fbeea104f9c3e2402392bf0c6af90bd..e6aedde774bafcf7df86caeef83358244b6d3657 100644 (file)
@@ -193,13 +193,13 @@ cpu-iowait
 ^^^^^^^^^^
 .. 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
 ^^^^^^^^^^^^^^
index 3c6d7d78399d95ccbbe91398b5ab00ed0ffedc37..413b758c0f194d2883f77c1f5c40bfe5148c8b35 100644 (file)
@@ -444,10 +444,10 @@ private:
 
     {"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")},
   };
 };