prometheus-postgresql-adapter
prometheus-postgresql-adapter copied to clipboard
failed to connect postgresql
Hi All, I use the pre-built binaries to push the prometheus data to postgresql issue: err="pq: Ident authentication failed for user "postgres"" but the postgresql is normal, and the user of "postgres" also can be in motion.
I don't know how to solve the problem. Any help would be appreciated.
Regards
Hello,
I just encountered the problem after setting a password for the postgres user.
There should be a configuration file, or better, a .env file to set up the credentials.
Regards,
After a bit of work - and (re)n reading the doc, I found out how to specify the password.
$ ./prometheus-postgres-adapter -pg.password=PASSWORD
Then, another problem (which I solved on my side), is to make the adapter star on my VM's restart.
On the other hand, having a yaml
file for specifying options would be great.