timescale / prometheus-postgresql-adapter

Use PostgreSQL as a remote storage database for Prometheus
Apache License 2.0
336 stars 66 forks source link

Too many connection error on Postgres #67

Open Haybu opened 5 years ago

Haybu commented 5 years ago

After connecting with the adapter, prometheus pods are not stable, restaring too many times. Not able to connecto to postgres database using a client, I keep on getting "Too many connetions" error.

adapter image: timescale/prometheus-postgresql-adapter:0.4.1 pg-postgres image: timescale/pg_prometheus:0.2.1

bboule commented 5 years ago

Can you share the parameters that you are passing in when you start timescale/prometheus-postgresql-adapter:0.4.1 often times its a bad parameter that will cause it to try and start then fail. Also pull the newest from our repo (0.5.0)... Also one other thing to check when you pass in the parameters you should use -pg-host= and not -pg.host (dashes not dots for all parameters) as this will cause the pod to fail to start.

let me know how it goes