Skip to content

Commit

Permalink
go.d: sd local listeners: add unix socket job (netdata#17304)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 authored Apr 1, 2024
1 parent 930f1bc commit aad196c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/go/collectors/go.d.plugin/config/go.d/postgres.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
## All available configuration options, their descriptions and default values:
## https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/modules/postgres#readme

jobs:
- name: local
dsn: 'host=/var/run/postgresql dbname=postgres user=netdata'
#collect_databases_matching: '*'
#jobs:
# - name: local
# dsn: 'host=/var/run/postgresql dbname=postgres user=netdata'
# #collect_databases_matching: '*'
#
# - name: local
# dsn: 'postgresql://netdata@127.0.0.1:5432/postgres'
12 changes: 9 additions & 3 deletions src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aad196c

Please sign in to comment.