summaryrefslogtreecommitdiffstats
path: root/collectors/python.d.plugin/nsd
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/python.d.plugin/nsd')
-rw-r--r--collectors/python.d.plugin/nsd/README.md26
-rw-r--r--collectors/python.d.plugin/nsd/metrics.csv7
2 files changed, 30 insertions, 3 deletions
diff --git a/collectors/python.d.plugin/nsd/README.md b/collectors/python.d.plugin/nsd/README.md
index f99726c30..ccc4e712b 100644
--- a/collectors/python.d.plugin/nsd/README.md
+++ b/collectors/python.d.plugin/nsd/README.md
@@ -4,10 +4,10 @@ custom_edit_url: "https://github.com/netdata/netdata/edit/master/collectors/pyth
sidebar_label: "NSD"
learn_status: "Published"
learn_topic_type: "References"
-learn_rel_path: "References/Collectors references/Networking"
+learn_rel_path: "Integrations/Monitor/Networking"
-->
-# NSD monitoring with Netdata
+# NSD collector
Uses the `nsd-control stats_noreset` command to provide `nsd` statistics.
@@ -66,6 +66,26 @@ It produces:
Configuration is not needed.
----
+
+### Troubleshooting
+
+To troubleshoot issues with the `nsd` module, run the `python.d.plugin` with the debug option enabled. The
+output will give you the output of the data collection job or error messages on why the collector isn't working.
+
+First, navigate to your plugins directory, usually they are located under `/usr/libexec/netdata/plugins.d/`. If that's
+not the case on your system, open `netdata.conf` and look for the setting `plugins directory`. Once you're in the
+plugin's directory, switch to the `netdata` user.
+
+```bash
+cd /usr/libexec/netdata/plugins.d/
+sudo su -s /bin/bash netdata
+```
+
+Now you can manually run the `nsd` module in debug mode:
+
+```bash
+./python.d.plugin nsd debug trace
+```
+
diff --git a/collectors/python.d.plugin/nsd/metrics.csv b/collectors/python.d.plugin/nsd/metrics.csv
new file mode 100644
index 000000000..b82812bf6
--- /dev/null
+++ b/collectors/python.d.plugin/nsd/metrics.csv
@@ -0,0 +1,7 @@
+metric,scope,dimensions,unit,description,chart_type,labels,plugin,module
+nsd.queries,,queries,queries/s,queries,line,,python.d.plugin,nsd
+nsd.zones,,"master, slave",zones,zones,stacked,,python.d.plugin,nsd
+nsd.protocols,,"udp, udp6, tcp, tcp6",queries/s,protocol,stacked,,python.d.plugin,nsd
+nsd.type,,"A, NS, CNAME, SOA, PTR, HINFO, MX, NAPTR, TXT, AAAA, SRV, ANY",queries/s,query type,stacked,,python.d.plugin,nsd
+nsd.transfer,,"NOTIFY, AXFR",queries/s,transfer,stacked,,python.d.plugin,nsd
+nsd.rcode,,"NOERROR, FORMERR, SERVFAIL, NXDOMAIN, NOTIMP, REFUSED, YXDOMAIN",queries/s,return code,stacked,,python.d.plugin,nsd