Add information on necessary postgresql configuration.
Facetoe committed
Oct 15, 2016 at 22:30 UTC
41db002ee16a9a429b300b72070718a2ed3289ad
1 file changed
+9
-4
conf.d/python.d/postgresql.conf
+9
-4
@@ -59,14 +59,19 @@
59
# database : example_db_name
60
# user : example_user
61
# password : example_pass
62
-# host: example.com
63
-# port: 5432
64
-
62
+# host : example.com
63
+# port : 5432
64
+#
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.
68
# ----------------------------------------------------------------------
69
# AUTO-DETECTION JOBS
70
# only one of them will run (they have the same name)
71
69
-# Depending on how postgresql is configured it may be possible to connect as the postgres user.
72
+
73
+# Requires access to the unix socket.
74
localhost:
75
name : postgres
76
database : postgres
77
+ user : postgres