]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fixes in docs and metrics help texts 10669/head
authorOtto <otto.moerbeek@open-xchange.com>
Fri, 24 Sep 2021 08:56:20 +0000 (10:56 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Fri, 24 Sep 2021 08:56:20 +0000 (10:56 +0200)
pdns/recursordist/docs/settings.rst
pdns/ws-recursor.cc

index 4d93560d66b62b4ebed25f46c853c82ae38f20b0..2343e6cc445f335696d2035493a9c390ab4b9a8b 100644 (file)
@@ -1887,6 +1887,8 @@ The numerical value supplied is used as the queue size, 0 meaning disabled. See
 
 Enable TCP Fast Open Connect support, if available, on the outgoing connections to authoritative servers. See :ref:`tcp-fast-open-support`.
 
+.. _setting-tcp-out-max-idle-ms:
+
 ``tcp-out-max-idle-ms``
 -----------------------
 .. versionadded:: 4.6.0
@@ -1896,6 +1898,8 @@ Enable TCP Fast Open Connect support, if available, on the outgoing connections
 
 Time outgoing TCP/DoT connections are left idle in milliseconds or 0 if no limit. After having been idle for this time, the connection is eligible for closing.
 
+.. _setting-tcp-out-max-per-auth:
+
 ``tcp-out-max-idle-per-auth``
 -----------------------------
 .. versionadded:: 4.6.0
@@ -1905,6 +1909,8 @@ Time outgoing TCP/DoT connections are left idle in milliseconds or 0 if no limit
 
 Maximum number of idle outgoing TCP/DoT connections to a specific IP per thread, 0 means do not keep idle connections open.
 
+.. _setting-tcp-out-max-queries:
+
 ``tcp-out-max-queries``
 -----------------------
 -  Integer
@@ -1915,6 +1921,8 @@ closed and a new one will be created if needed.
 
 .. versionadded:: 4.6.0
 
+.. _setting-tcp-out-max-idle-per-thread:
+
 ``tcp-out-max-idle-per-thread``
 -------------------------------
 .. versionadded:: 4.6.0
index 2b0a87068d55814d14333537d469a3efe37f3a30..97b968d5ab5031d790ff9176310e5573790c4e14 100644 (file)
@@ -1085,6 +1085,11 @@ const std::map<std::string, MetricDefinition> MetricDefinitionStorage::d_metrics
   { "policy-hits",
     MetricDefinition(PrometheusMetricType::multicounter,
                      "Number of filter or RPZ policy hits")},
+
+  { "idle-tcpout-connections",
+    MetricDefinition(PrometheusMetricType::gauge,
+                     "Number of connections in the TCP idle outgoing connections pool")},
+
 };
 
 #define CHECK_PROMETHEUS_METRICS 0