diff options
author | Facetoe <facetoe@facetoe.com.au> | 2016-10-23 18:31:54 +0800 |
---|---|---|
committer | Facetoe <facetoe@facetoe.com.au> | 2016-10-23 18:31:54 +0800 |
commit | 4f6c4b639a17d569b1258682e903fd59319bcfa5 (patch) | |
tree | 3d862e80669203678fdc728a030d52d2692bf086 /conf.d/python.d | |
parent | 41d0bd5909389b20700f77d076c29aab7fe9fe68 (diff) |
Update configuration file.
Diffstat (limited to 'conf.d/python.d')
-rw-r--r-- | conf.d/python.d/postgres.conf | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/conf.d/python.d/postgres.conf b/conf.d/python.d/postgres.conf index 555d91228d..903ea53d1a 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 + |