timescale / prometheus-postgresql-adapter

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

Added one more DB host to support PostgreSQL switchover and failover #73

Closed hudec closed 5 years ago

hudec commented 5 years ago

In the case there's only one DB host, the adapter works as before. In he case there are two DB hosts, the "SELECT pg_is_in_recovery()" is used to find R/W DB instance, and also in health check.

CLAassistant commented 5 years ago

CLA assistant check
All committers have signed the CLA.

RobAtticus commented 5 years ago

I believe we are moving to not use pg. but rather pg- for prefixing flags

hudec commented 5 years ago

Hi I have already signed required doc, attached is screenshot Regards Vladimir Hude

On Wed, May 8, 2019 at 9:06 PM RobAtticus notifications@github.com wrote:

I believe we are moving to not use pg. but rather pg- for prefixing flags

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/timescale/prometheus-postgresql-adapter/pull/73#issuecomment-490611895, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFPUSGNHUYJALTDBD7K5D3PUMQDRANCNFSM4HG5FOAA .