From 263ec643b26ddd4e8c9ff61f64c721f09f9a6964 Mon Sep 17 00:00:00 2001 From: "Max J. Rodriguez B" Date: Tue, 12 Mar 2019 13:18:25 -0700 Subject: Fix Postgres connect, incorrect port value (#5618) ##### Summary Fix postgres connection, port value was incorrect, it was taking host value instead of port. ##### Component Name [collectors/python.d.plugin/postgres](https://github.com/netdata/netdata/tree/master/collectors/python.d.plugin/postgres) ##### Additional Information --- collectors/python.d.plugin/postgres/postgres.chart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'collectors/python.d.plugin/postgres/postgres.chart.py') diff --git a/collectors/python.d.plugin/postgres/postgres.chart.py b/collectors/python.d.plugin/postgres/postgres.chart.py index ff741a06c3..48880bb08f 100644 --- a/collectors/python.d.plugin/postgres/postgres.chart.py +++ b/collectors/python.d.plugin/postgres/postgres.chart.py @@ -815,7 +815,7 @@ class Service(SimpleService): params = { 'host': conf.get('host'), - 'port': conf.get('host', DEFAULT_PORT), + 'port': conf.get('port', DEFAULT_PORT), 'database': conf.get('database'), 'user': conf.get('user', DEFAULT_USER), 'password': conf.get('password'), -- cgit v1.2.3