docs(go.d/postgres): add config example with unix socket + custom port (#19501)
Ilya Mashchenko committed
Jan 27, 2025 at 22:11 UTC
d67b8d1d4d61cfaacfd7dab71af0f63805dd3e62
1 file changed
+6
src/go/plugin/go.d/collector/postgres/metadata.yaml
+6
@@ -128,6 +128,12 @@ modules:
128
jobs:
129
- name: local
130
dsn: 'host=/var/run/postgresql dbname=postgres user=netdata'
131
+ - name: Unix socket (custom port)
132
+ description: Connect to PostgreSQL using a Unix socket with a non-default port (5433).
133
+ config: |
134
+ jobs:
135
+ - name: local
136
+ dsn: 'host=/var/run/postgresql port=5433 dbname=postgres user=netdata'
137
- name: Multi-instance
138
description: |
139
> **Note**: When you define multiple jobs, their names must be unique.