grafana / clickhouse-datasource

Grafana Plugin for ClickHouse
Apache License 2.0
128 stars 60 forks source link

Support load-balancing and failover hosts #279

Open jonbuffington opened 1 year ago

jonbuffington commented 1 year ago

Is your feature request related to a problem? Please describe.

I would like to connect to multiple ClickHouse servers to support our load-balancing and failover requirements.

Describe the solution you'd like

Provide the values of host(s) as a comma-separated list per the clickhouse-go driver's DSN hosts field. See https://github.com/ClickHouse/clickhouse-go#dsn

Describe alternatives you've considered

Deploying a separate TCP proxy that would support native ClickHouse connections. The downside is that the client would not be directly aware of host connection failures (e.g., rolling update) and simply retry.

Additional context

N/A

ceevaaa commented 9 months ago

any updates here @jonbuffington ?