Skip to content
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

Postgres 10.0 version could not be determined #111

Closed
rgl opened this issue Oct 7, 2017 · 1 comment
Closed

Postgres 10.0 version could not be determined #111

rgl opened this issue Oct 7, 2017 · 1 comment

Comments

@rgl
Copy link

rgl commented Oct 7, 2017

When running this against postgres 10.0 the following warning is logged:

level=warning msg="Proceeding with outdated query maps, as the Postgres version could not be determined: Error parsing version string: Could not find a postgres version in 
string: PostgreSQL 10.0, compiled by Visual C++ build 1800, 64-bit\n" source="postgres_exporter.go:984"

Instead of using a regular expression (which expects to find a full 3 digit version, instead of just two) and the SELECT version(); statement why aren't you using the show server_version (which returns 10.0) statement instead?

@rgl
Copy link
Author

rgl commented Oct 8, 2017

#112 contains a fix for this

wrouesnel added a commit that referenced this issue Oct 9, 2017
ritbl referenced this issue in heniek/postgres_exporter Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant