timescale / prometheus-postgresql-adapter

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

Unclear how to use adapter for read load balance #12

Open DeathBorn opened 6 years ago

DeathBorn commented 6 years ago

We employ replicated postgres solution and would like to balance read load across replicas. Nonetheless it would be nice if it would work when the replica is promoted to leader.

err="pq: cannot set transaction read-write mode during recovery"
skilyazhnev commented 6 years ago

https://github.com/timescale/prometheus-postgresql-adapter/issues/39