diff options
Diffstat (limited to 'src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf')
-rw-r--r-- | src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf b/src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf index 7f3c93f768..4148fcd29d 100644 --- a/src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf +++ b/src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf @@ -313,9 +313,15 @@ compose: address: redis://@{{.IPAddress}}:{{.Port}} - selector: "postgres" template: | - module: postgres - name: local - dsn: postgresql://netdata@{{.Address}}/postgres + - module: postgres + name: local + dsn: 'host=/var/run/postgresql dbname=postgres user=postgres' + - module: postgres + name: local + dsn: 'host=/var/run/postgresql dbname=postgres user=netdata' + - module: postgres + name: local + dsn: postgresql://netdata@{{.Address}}/postgres - selector: "powerdns" template: | module: powerdns |