-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
postgresql_extensible plugin does not have switcher to disable server_version_num checker #2660
Comments
Seems like a bug/mistake. If the version query does not succeed, we should continue with queries and treat the db_version as 0. This way queries with no version set will still run. @kotopes Are you interested in submitting a PR? |
@kotopes Does this plugin postgresql_extensibel give us Live data about our db server ? I am not getting it's concept, I will show you why.
This is a query run on one of the views provided by the Statistics collector of Postgresql. But these numbers are ridiculous. Even I sum all of my rows in my databases, they will never sum to these, and also I have not used my postgresql in weeks, which directly means it is giving me old data. please explain these numbers to me. Is there any way I can get live data ? |
@sLuvpreet33 Please only make comments about the reported bug here, in order to stay on topic and keep the history clear. You can ask for help over on the Community site. |
referenced by comment influxdata#2660 (comment)
The version is now considered to be 0 if it cannot be determined. |
Bug report
I use telegraf postgresql_extensible plugin to grab metrics from pgbouncer, but in system log, i have some errors:
not have shitcher - disable_pgversion_check, no ignore checking pg version (in pgbouncer database not have pg_settings table)
Relevant telegraf.conf:
System info:
Ubuntu x64 16.04.2 LTS (Linux pgsql.local 4.4.0-66-generic #87-Ubuntu SMP)
telegraf=1.2.1-1
pgbouncer=1.7.2-2.pgdg16.04+1
Steps to reproduce:
input_pgbouncer_stats.conf
Additional info:
in plugin code:
https://github.com/influxdata/telegraf/blob/master/plugins/inputs/postgresql_extensible/postgresql_extensible.go#L139-L145
The text was updated successfully, but these errors were encountered: