postgres_exporter icon indicating copy to clipboard operation
postgres_exporter copied to clipboard

postgres_exporter shows wrong version

Open bon3o opened this issue 4 years ago • 4 comments

When checking postgres_exporter version in http output it shows value 0.0.1 on the latest buld. As I can see this version is defined in variables in https://github.com/wrouesnel/postgres_exporter/blob/master/cmd/postgres_exporter/postgres_exporter.go on line 41 & 44. Can you please fix this.

bon3o avatar Oct 06 '20 13:10 bon3o

Note: postgres_exporter --version prints correct version. But metric postgres_exporter_build_info show wrong value.

mrkeuz avatar Jan 31 '21 06:01 mrkeuz

The latest build from postgres_exporter-0.9.0.linux-amd64.tar.gz reports postgres_exporter 0.0.1-rev (built with go1.15.8) when you run postgres_exporter --version. Have not deployed it yet to check what postgres_exporter_build_info shows.

Current version I'm running reports postgres_exporter v0.8.0-4-g3ecfd46 (built with go1.11.2) at the command line, and version="0.0.1" for the metric.

mcwanek avatar Mar 16 '21 18:03 mcwanek

This is fixed by https://github.com/prometheus-community/postgres_exporter/pull/494, but we haven't cut a new release.

SuperQ avatar Mar 16 '21 19:03 SuperQ

@SuperQ There's been a release (0.10.0) since, so this should be closed.

mbanck avatar Nov 26 '21 08:11 mbanck