diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-10-30 02:05:16 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-10-30 02:05:16 +0300 |
commit | 66c57eb5b35d456cc0f7a61eeddba6e8441b9e74 (patch) | |
tree | b6b15b8fdb6c7dd28659431755203fd2293193a6 /conf.d | |
parent | 1cd7b34219c02fb47bd906d027f401779863a68d (diff) |
postgres plugin improvements
Diffstat (limited to 'conf.d')
-rw-r--r-- | conf.d/Makefile.am | 1 | ||||
-rw-r--r-- | conf.d/python.d/postgres.conf | 47 |
2 files changed, 36 insertions, 12 deletions
diff --git a/conf.d/Makefile.am b/conf.d/Makefile.am index c2ef258c95..f6cb7742f7 100644 --- a/conf.d/Makefile.am +++ b/conf.d/Makefile.am @@ -41,6 +41,7 @@ dist_pythonconfig_DATA = \ python.d/nginx_log.conf \ python.d/phpfpm.conf \ python.d/postfix.conf \ + python.d/postgres.conf \ python.d/redis.conf \ python.d/retroshare.conf \ python.d/sensors.conf \ diff --git a/conf.d/python.d/postgres.conf b/conf.d/python.d/postgres.conf index 392c3fef00..109f261cb2 100644 --- a/conf.d/python.d/postgres.conf +++ b/conf.d/python.d/postgres.conf @@ -55,22 +55,45 @@ # 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 |