0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-05-17 06:32:21 +00:00

Fix Postgres connect, incorrect port value ()

<!--
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
This commit is contained in:
Max J. Rodriguez B 2019-03-12 13:18:25 -07:00 committed by Ilya Mashchenko
parent 36c526ffc9
commit 263ec643b2

View file

@ -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'),