X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=conf.d%2Fpython.d%2Fpostgres.conf;h=903ea53d1abc8547e591c8082bf62e9e6c6de120;hb=4f6c4b639a17d569b1258682e903fd59319bcfa5;hp=555d91228ddd6e9bf0c6eb902f6e791a8004340c;hpb=d21f2536a6618aac0b9af65ecd55537dec293459;p=netdata.git diff --git a/conf.d/python.d/postgres.conf b/conf.d/python.d/postgres.conf index 555d9122..903ea53d 100644 --- a/conf.d/python.d/postgres.conf +++ b/conf.d/python.d/postgres.conf @@ -54,24 +54,19 @@ # priority: 60000 # the JOB's order on the dashboard # retries: 5 # the JOB's number of restoration attempts # -# Databases can be configured with the following options: +# A single connection is required in order to pull statistics. +# Connections can be configured with the following options: # name : example_database_job_name # database : example_db_name # user : example_user # password : example_pass -# host : example.com -# port : 5432 +# host: localhost +# port: 5432 # -# Of these options, "database" and "user" are required. If Postgresql is configured -# to allow connections via the unix socket ("local" is set to "trust" in pg_hba.conf) -# then a password is not necessary. # ---------------------------------------------------------------------- -# AUTO-DETECTION JOBS -# only one of them will run (they have the same name) - -# Requires access to the unix socket. -localhost: +# Attempt to connect via the Unix socket as the postgres user. +unix_socket_superuser: name : postgres database : postgres - user : postgres +