mirror of
https://github.com/netdata/netdata.git
synced 2025-05-17 22:52:21 +00:00
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
This commit is contained in:
parent
36c526ffc9
commit
263ec643b2
1 changed files with 1 additions and 1 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue