]> arthur.barton.de Git - netdata.git/blobdiff - conf.d/python.d/postgres.conf
postgres plugin improvements
[netdata.git] / conf.d / python.d / postgres.conf
index 392c3fef009125b55cfb9844ae2e87312d66694a..109f261cb2756a94bfda0b1688deab8d7cc1e98d 100644 (file)
 #     retries: 5       # the JOB's number of restoration attempts
 #
 # 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: localhost
-#     port: 5432
+#
+#     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
+#     table_stats : false
+#     index_stats : false
+#
 # ----------------------------------------------------------------------
 
-# Attempt to connect via the Unix socket as the postgres user.
-unix_socket_superuser:
-    name : postgres
-    database : postgres
+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