Open admiral-manjinder opened 5 years ago
Can you try setting the postgres user's password in pg_prometheus, and then putting that password in your config file in the appropriate place? The flag is -pg.password=
. This tutorial also could be helpful, specifically the Spin up Pg_Prometheus
step and the Docker configs.
Hello... When you spin up the Timescale Prometheus adapter as you passing in the password for the postgres user? It is unclear if you are not passing it in or simply removed it from the log entry you pasted in? from what I can see you may be failing in so far as you are not passing in a password? and rather than trust in your HBA add md5 let us know how it goes..
I am setting this up in kubernetes and getting the below error in adapter logs
I have also tried adding below line to my pg_hba.conf but no luck: host postgres postgres 0.0.0.0/0 trust
Surprisingly if i create another separate DB with some credentials while spinning up pg_prometheus and pass its credentials to postgres-adapter, it is able to connect seamlessly. But that is not of much help because apparently we cannot use any db but 'postgres' due to the required initial setup being already done in it.
Please help me get through this.