From 4f6c4b639a17d569b1258682e903fd59319bcfa5 Mon Sep 17 00:00:00 2001 From: Facetoe Date: Sun, 23 Oct 2016 18:31:54 +0800 Subject: [PATCH] Update configuration file. --- conf.d/python.d/postgres.conf | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) 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 + -- 2.39.2