diff options
author | Max J. Rodriguez B <ing.maxjrb@gmail.com> | 2019-03-12 13:18:25 -0700 |
---|---|---|
committer | Ilya Mashchenko <ilyamaschenko@gmail.com> | 2019-03-12 23:18:25 +0300 |
commit | 263ec643b26ddd4e8c9ff61f64c721f09f9a6964 (patch) | |
tree | d4f831dc15cfb2eb9a546dfc0391c674d18f74f5 | |
parent | 36c526ffc9f14ad4c792bba94c922c48627e16a4 (diff) |
Fix Postgres connect, incorrect port value (#5618)
<!--
Describe the change in summary section, including rationale and degin decisions.
Include "Fixes #nnn" if you are fixing an existing issue.
In "Component Name" section write which component is changed in this PR. This
will help us review your PR quicker.
If you have more information you want to add, write them in "Additional
Information" section. This is usually used to help others understand your
motivation behind this change. A step-by-step reproduction of the problem is
helpful if there is no related issue.
-->
##### 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
-rw-r--r-- | collectors/python.d.plugin/postgres/postgres.chart.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'), |