@cryptotaxi247 / netdata-1 / commits / aad196cdd

go.d: sd local listeners: add unix socket job (#17304)

Ilya Mashchenko committed Apr 1, 2024 at 12:23 UTC aad196cddb0cddac4dd7105c25e1a174a3a2de68
2 files changed +14 -7
src/go/collectors/go.d.plugin/config/go.d/postgres.conf
+5 -4
@@ -1,9 +1,10 @@
1 ## All available configuration options, their descriptions and default values:
2 ## https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/modules/postgres#readme
3
4 -jobs:
5 - - name: local
6 - dsn: 'host=/var/run/postgresql dbname=postgres user=netdata'
7 - #collect_databases_matching: '*'
4 +#jobs:
5 +# - name: local
6 +# dsn: 'host=/var/run/postgresql dbname=postgres user=netdata'
7 +# #collect_databases_matching: '*'
8 +#
9 # - name: local
10 # dsn: 'postgresql://netdata@127.0.0.1:5432/postgres'
src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf
+9 -3
@@ -313,9 +313,15 @@ compose:
313 address: redis://@{{.IPAddress}}:{{.Port}}
314 - selector: "postgres"
315 template: |
316 - module: postgres
317 - name: local
318 - dsn: postgresql://netdata@{{.Address}}/postgres
316 + - module: postgres
317 + name: local
318 + dsn: 'host=/var/run/postgresql dbname=postgres user=postgres'
319 + - module: postgres
320 + name: local
321 + dsn: 'host=/var/run/postgresql dbname=postgres user=netdata'
322 + - module: postgres
323 + name: local
324 + dsn: postgresql://netdata@{{.Address}}/postgres
325 - selector: "powerdns"
326 template: |
327 module: powerdns