Closed JosefMachytkaNetApp closed 1 year ago
OK, I think I know the answer why you excluded additional collectors from the official latest
image, some additional collectors seem to be broken. This is what I see in docker logs
when testing master
image with different versions of PostgreSQL:
ts=2023-09-12T14:54:28.616Z caller=collector.go:199 level=error msg="collector failed" name=stat_wal_receiver duration_seconds=0.016148697 err="pq: syntax error at or near \")\""
...
ts=2023-09-12T14:54:28.607Z caller=collector.go:199 level=error msg="collector failed" name=xlog_location duration_seconds=0.006929916 err="pq: function pg_last_xlog_replay_location() does not exist"
...
ts=2023-09-12T14:54:28.618Z caller=collector.go:199 level=error msg="collector failed" name=stat_activity_autovacuum duration_seconds=0.017654145 err="pq: syntax error at or near \")\""
And the binary build from master has the same errors of course. So even my own image does not solve this problem.
BTW, there is another interesting problem with master
build - with PostgreSQL 15 exporter opens still new and new connections into database, until it reaches max_connections limit.
Thank you for reporting the 3 errors in your logs. These were bugs and they should be resolved in #910. Once that is merged, you should be able to try it out.
As for latest
vs master
tag for our docker images, they serve separate purposes. For this project, latest
is the latest tagged release. This release will be considered stable and is what most users will want to use. master
is built from the master branch in git and will contain new features before they are included in an actual release. I would not recommend this for production because this code may not be up to the same quality as a release.
Thank you, sounds good. Looking forward to test new stable release. Again - thank you very much for all your effort.
Could you please check process building docker images? Looks like image
latest
does not contain additional collectors. Definitely not WAL related ones.When I use
latest
image, WAL metrics are NOT there and if I try "--collector.wal" parameter it says unknown parameter. Also when I try help or help-long inside container running official image, it does NOT show any lines related to WAL metrics.But image
master
HAS wal metrics - help-long shows it and --collector.wal works here.Image
latest
shows version:Image
master
shows version:Thank you very much for your effort.