# ContentSquare/chproxy

Open-Source ClickHouse http proxy and load balancer

Repository: https://github.com/ContentSquare/chproxy
Canonical: https://ross.abutalabs.com/products/chproxy
Homepage: https://www.chproxy.org/
Language: Go
License: MIT
License Family: permissive
Topics: clickhouse, proxy, clickhouse-proxy, load-balancer
Last push: 2026-04-15T07:11:53+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 77, release rhythm 47, longevity 100
- inputs: {"age_days": 3271, "days_push": 140, "days_rel": 357, "gap_med": 29, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1480, forks 277 (observed 2026-08-28T04:04:50.872935+00:00)

## What it is
Chproxy is an open-source HTTP proxy and load balancer for ClickHouse databases, written in Go. It routes requests across multiple ClickHouse clusters, maps and hides credentials, enforces per-user limits, caches responses, and exposes Prometheus metrics.

## Use cases
- proxy http requests to multiple clickhouse clusters
- load balance queries across clickhouse replicas
- hide real clickhouse credentials behind mapped proxy users
- rate limit and cap concurrent queries per user
- cache clickhouse query responses with thundering herd protection
- expose prometheus metrics for a clickhouse proxy

## When to choose
- you serve ClickHouse over HTTP and need load balancing, user mapping, and per-user quotas in one gateway
- you need response caching, IP allowlists, or automatic HTTPS via Let's Encrypt in front of ClickHouse
- you want a battle-tested, production-ready proxy with Prometheus metrics and hot config reload

## When to avoid
- you need the ClickHouse native protocol - chproxy only proxies HTTP
- you prefer inserting data directly without a proxy, since native protocol inserts are faster
- you need a generic proxy for databases other than ClickHouse

## Facets
- artifact type: service
- maturity: active
- function: proxy, load-testing, caching, rate-limiting, auth, monitoring, http-server
- domain: databases, backend, self-hosted, analytics
- platform: go, self-hosted, cross-platform
- tags: clickhouse, load-balancer, http-proxy, reverse-proxy, prometheus-metrics, lets-encrypt, linux, macos, docker

## Member repositories
- ContentSquare/chproxy (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:50.872935+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:34:12.372013+00:00, confidence not recorded.
  - readme: https://github.com/ContentSquare/chproxy (fetched 2026-08-28T04:04:50.872935+00:00, sha c7f6703c7c24)
  - homepage: https://www.chproxy.org/ (fetched 2026-08-29T11:40:59.408998+00:00, sha 54292df1d685)
  - site_page: https://www.chproxy.org/install (fetched 2026-08-29T11:40:59.411537+00:00, sha b5620be4740d)
  - site_page: https://www.chproxy.org/changelog (fetched 2026-08-29T11:40:59.413452+00:00, sha bf0a165d6b32)
  - site_page: https://www.chproxy.org/faq (fetched 2026-08-29T11:40:59.415341+00:00, sha 6f0a8d631bc9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
