summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/powerdns_recursor/metrics.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/go/collectors/go.d.plugin/modules/powerdns_recursor/metrics.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/powerdns_recursor/metrics.go b/src/go/collectors/go.d.plugin/modules/powerdns_recursor/metrics.go
new file mode 100644
index 000000000..a7fbd63c1
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/powerdns_recursor/metrics.go
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package powerdns_recursor
+
+// https://doc.powerdns.com/recursor/metrics.html
+// https://docs.powerdns.com/recursor/performance.html#recursor-caches
+
+// PowerDNS Recursor documentation has no section about statistics objects,
+// fortunately authoritative has.
+// https://doc.powerdns.com/authoritative/http-api/statistics.html#objects
+type (
+ statisticMetrics []statisticMetric
+ statisticMetric struct {
+ Name string
+ Type string
+ Value interface{}
+ }
+)