Update configuration file.
Facetoe committed
Oct 23, 2016 at 18:31 UTC
4f6c4b639a17d569b1258682e903fd59319bcfa5
1 file changed
+7
-12
conf.d/python.d/postgres.conf
+7
-12
@@ -54,24 +54,19 @@
54
# priority: 60000 # the JOB's order on the dashboard
55
# retries: 5 # the JOB's number of restoration attempts
56
#
57
-# Databases can be configured with the following options:
57
+# A single connection is required in order to pull statistics.
58
+# Connections can be configured with the following options:
59
# name : example_database_job_name
60
# database : example_db_name
61
# user : example_user
62
# password : example_pass
62
-# host : example.com
63
-# port : 5432
63
+# host: localhost
64
+# port: 5432
65
#
65
-# Of these options, "database" and "user" are required. If Postgresql is configured
66
-# to allow connections via the unix socket ("local" is set to "trust" in pg_hba.conf)
67
-# then a password is not necessary.
66
# ----------------------------------------------------------------------
69
-# AUTO-DETECTION JOBS
70
-# only one of them will run (they have the same name)
67
72
-
73
-# Requires access to the unix socket.
74
-localhost:
68
+# Attempt to connect via the Unix socket as the postgres user.
69
+unix_socket_superuser:
70
name : postgres
71
database : postgres
77
- user : postgres
72
+