summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/modules/powerdns/charts.go
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:19:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 12:07:37 +0000
commitb485aab7e71c1625cfc27e0f92c9509f42378458 (patch)
treeae9abe108601079d1679194de237c9a435ae5b55 /src/go/collectors/go.d.plugin/modules/powerdns/charts.go
parentAdding upstream version 1.44.3. (diff)
downloadnetdata-b485aab7e71c1625cfc27e0f92c9509f42378458.tar.xz
netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.zip
Adding upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/go/collectors/go.d.plugin/modules/powerdns/charts.go')
-rw-r--r--src/go/collectors/go.d.plugin/modules/powerdns/charts.go66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/powerdns/charts.go b/src/go/collectors/go.d.plugin/modules/powerdns/charts.go
new file mode 100644
index 000000000..119ca4a2e
--- /dev/null
+++ b/src/go/collectors/go.d.plugin/modules/powerdns/charts.go
@@ -0,0 +1,66 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package powerdns
+
+import "github.com/netdata/netdata/go/go.d.plugin/agent/module"
+
+var charts = module.Charts{
+ {
+ ID: "questions_in",
+ Title: "Incoming questions",
+ Units: "questions/s",
+ Fam: "questions",
+ Ctx: "powerdns.questions_in",
+ Dims: module.Dims{
+ {ID: "udp-queries", Name: "udp", Algo: module.Incremental},
+ {ID: "tcp-queries", Name: "tcp", Algo: module.Incremental},
+ },
+ },
+ {
+ ID: "questions_out",
+ Title: "Outgoing questions",
+ Units: "questions/s",
+ Fam: "questions",
+ Ctx: "powerdns.questions_out",
+ Dims: module.Dims{
+ {ID: "udp-answers", Name: "udp", Algo: module.Incremental},
+ {ID: "tcp-answers", Name: "tcp", Algo: module.Incremental},
+ },
+ },
+ {
+ ID: "cache_usage",
+ Title: "Cache Usage",
+ Units: "events/s",
+ Fam: "cache",
+ Ctx: "powerdns.cache_usage",
+ Dims: module.Dims{
+ {ID: "query-cache-hit", Algo: module.Incremental},
+ {ID: "query-cache-miss", Algo: module.Incremental},
+ {ID: "packetcache-hit", Name: "packet-cache-hit", Algo: module.Incremental},
+ {ID: "packetcache-miss", Name: "packet-cache-miss", Algo: module.Incremental},
+ },
+ },
+ {
+ ID: "cache_size",
+ Title: "Cache Size",
+ Units: "entries",
+ Fam: "cache",
+ Ctx: "powerdns.cache_size",
+ Dims: module.Dims{
+ {ID: "query-cache-size", Name: "query-cache"},
+ {ID: "packetcache-size", Name: "packet-cache"},
+ {ID: "key-cache-size", Name: "key-cache"},
+ {ID: "meta-cache-size", Name: "meta-cache"},
+ },
+ },
+ {
+ ID: "latency",
+ Title: "Answer latency",
+ Units: "microseconds",
+ Fam: "latency",
+ Ctx: "powerdns.latency",
+ Dims: module.Dims{
+ {ID: "latency"},
+ },
+ },
+}