-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python.d postgres unhandled exception #3614
Comments
hello sudo su -s /bin/bash netdata
/usr/libexec/netdata/plugins.d/python.d.plugin 1 debug trace postgres |
|
|
please run it with |
|
thx Do you want to debug it? (what metric) |
Whatever would be the most universal solution for the plugin. If you think it would be valuable info we can debug further. |
Well, lets check what metric is Please change to if row[metric] is None:
self.debug("Row {0}\nMetric {1}".format(row, metric))
continue
self.data[dimension_id] = int(row[metric]) edited |
|
@peter92427 ops, sorry, should be |
No worries. :) So, what are we searching for? I get loads of data now... |
self.debug("Row {0}\nMetric {1}".format(row, metric)) output |
I think I found something:
|
there must be two lines |
You're right, i've updated the previous comment. |
@peter92427 btw does it work after #3614 (comment) ? |
Hi, i've updated to the latest code. Debug mode on cli runs fine now, however i do not see postgresql on dashboard. |
all erros in goto netdata log dir
|
False alert, there were multiple netdata processes left from previous testing... The dashboard is now visible for the first time. :)
|
that's ok |
Allright, thanks for all the help and speedy response. :D Have a nice day! |
merged it. |
Hi, i'm hitting this error no matter what i setup in configuration. My system is Centos7, Python v 2.7, Netdata latest static binary version.
python.d ERROR: postgres: tcp: update() unhandled exception: int() argument must be a string or a number, not 'NoneType'
postgres.conf:
The text was updated successfully, but these errors were encountered: