]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
x-our-latency is a gauge. While there, describe better what it is 9686/head
authorOtto Moerbeek <otto@drijf.net>
Mon, 9 Nov 2020 11:38:14 +0000 (12:38 +0100)
committerOtto Moerbeek <otto@drijf.net>
Mon, 9 Nov 2020 11:38:55 +0000 (12:38 +0100)
and fix a ref.

Fixes #9638

pdns/recursordist/docs/metrics.rst
pdns/recursordist/rec_metrics.hh

index d65b7557f8b1bc1d64ef5cf29796262e87295f2f..beebdfe991cba86075f17c091b84af905938106b 100644 (file)
@@ -540,8 +540,6 @@ user-msec
 ^^^^^^^^^
 number of CPU milliseconds spent in 'user' mode
 
-.. _stat-x-our-latency:
-
 variable-responses
 ^^^^^^^^^^^^^^^^^^
 .. versionadded:: 4.2
@@ -550,6 +548,8 @@ Responses that were marked as 'variable'. This could be because of EDNS
 Client Subnet or Lua rules that indicate this variable status (dependent on
 time or who is asking, for example).
 
+.. _stat-x-our-latency:
+
 x-our-latency
 ^^^^^^^^^^^^^
 .. versionadded:: 4.1
index 4cc6b4a1258dfc61d60fc1b1ba32c5ce0b364f3b..4a0be9e3943b88d54a53ed731a157d5cec7bebf7 100644 (file)
@@ -399,8 +399,8 @@ private:
         "Number of responses that were marked as 'variable'")},
 
     {"x-our-latency",
-      MetricDefinition(PrometheusMetricType::counter,
-        "How much time was spent within PowerDNS in microseconds")},
+      MetricDefinition(PrometheusMetricType::gauge,
+        "Shows the averaged time spent within PowerDNS, in microseconds, exponentially weighted over past 'latency-statistic-size' packets")},
     {"x-ourtime0-1",
       MetricDefinition(PrometheusMetricType::counter,
         "Counts responses where between 0 and 1 milliseconds was spent within the Recursor")},