summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorTasos Katsoulas <tasos@netdata.cloud>2022-07-14 20:21:49 +0300
committerGitHub <noreply@github.com>2022-07-14 20:21:49 +0300
commit02996dab660563efbda48f02e32b7b850a0c5b0f (patch)
tree4a923184615312d22b5b519c5058e4338f4a230f /collectors
parentbc5ba4f8912a5436a458d5015f11c06bd046c01a (diff)
Docs housekeeping (#13179)
* Change the title of the /docs/configure/machine-learning doc * fix some outdated links * Clarify some details in the postgres collector
Diffstat (limited to 'collectors')
-rw-r--r--collectors/python.d.plugin/postgres/README.md26
1 files changed, 25 insertions, 1 deletions
diff --git a/collectors/python.d.plugin/postgres/README.md b/collectors/python.d.plugin/postgres/README.md
index 224b76ff52..9ecf7eb58b 100644
--- a/collectors/python.d.plugin/postgres/README.md
+++ b/collectors/python.d.plugin/postgres/README.md
@@ -97,7 +97,8 @@ cd /etc/netdata # Replace this path with your Netdata config directory, if dif
sudo ./edit-config python.d/postgres.conf
```
-When no configuration file is found, the module tries to connect to TCP/IP socket: `localhost:5432`.
+When no configuration file is found, the module tries to connect to TCP/IP socket: `localhost:5432` with the
+following collection jobs.
```yaml
socket:
@@ -113,6 +114,29 @@ tcp:
port : 5432
```
+**Note**: Every job collection must have a unique identifier. In cases that you monitor multiple DBs, every
+job must have it's own name. Use a mnemonic of your preference (e.g us_east_db, us_east_tcp)
+
+## Troubleshooting
+
+To troubleshoot issues with the `postgres` collector, run the `python.d.plugin` with the debug option enabled. The output
+should give you clues as to why the collector isn't working.
+
+First, navigate to your plugins directory, usually at `/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
+```
+
+You can now run the `python.d.plugin` to debug the collector:
+
+```bash
+./python.d.plugin postgres debug trace
+```
+
---