]> arthur.barton.de Git - netdata.git/blobdiff - conf.d/python.d/postgres.conf
dns_query_time plugin: replace "." with "_" in dimensions
[netdata.git] / conf.d / python.d / postgres.conf
index 555d91228ddd6e9bf0c6eb902f6e791a8004340c..12dddae67ea2176115ff8360b0dce72c32986eec 100644 (file)
 #     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:
-#     name : example_database_job_name
-#     database : example_db_name
-#     user : example_user
-#     password : example_pass
-#     host : example.com
-#     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.
+# A single connection is required in order to pull statistics.
+#
+# Connections can be configured with the following options:
+#
+#     database    : 'example_db_name'
+#     user        : 'example_user'
+#     password    : 'example_pass'
+#     host        : 'localhost'
+#     port        : 5432
+#
+# Additionally, the following options allow selective disabling of charts
+#
+#     table_stats : false
+#     index_stats : false
+#     database_poll : 'dbase_name1 dbase_name2' # poll only specified databases (all other will be excluded from charts)
+#
+# Postfix permissions are configured at its pg_hba.conf file. You can
+# "trust" local clients to allow netdata to connect, or you can create
+# a postgres user for netdata and add its password below to allow
+# netdata connect.
+#
 # ----------------------------------------------------------------------
-# AUTO-DETECTION JOBS
-# only one of them will run (they have the same name)
 
+socket:
+    name     : 'local'
+    user     : 'postgres'
+    database : 'postgres'
+
+tcp:
+    name     : 'local'
+    database : 'postgres'
+    user     : 'postgres'
+    host     : 'localhost'
+    port     : 5432
+
+tcpipv4:
+    name     : 'local'
+    database : 'postgres'
+    user     : 'postgres'
+    host     : '127.0.0.1'
+    port     : 5432
+
+tcpipv6:
+    name     : 'local'
+    database : 'postgres'
+    user     : 'postgres'
+    host     : '::1'
+    port     : 5432
 
-# Requires access to the unix socket.
-localhost:
-    name : postgres
-    database : postgres
-    user : postgres