{"id":40119396,"url":"https://github.com/sinkingpoint/prometheus-clickhouse-bridge","last_synced_at":"2026-01-19T12:34:42.815Z","repository":{"id":88052911,"uuid":"550720674","full_name":"sinkingpoint/prometheus-clickhouse-bridge","owner":"sinkingpoint","description":"A Go daemon that provides a Prometheus Remote Read/Write interface on top of Clickhouse","archived":false,"fork":false,"pushed_at":"2024-05-28T11:16:17.000Z","size":46,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-21T19:39:05.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sinkingpoint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-13T08:08:28.000Z","updated_at":"2024-06-11T18:30:49.000Z","dependencies_parsed_at":"2024-05-28T13:14:38.737Z","dependency_job_id":null,"html_url":"https://github.com/sinkingpoint/prometheus-clickhouse-bridge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sinkingpoint/prometheus-clickhouse-bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinkingpoint%2Fprometheus-clickhouse-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinkingpoint%2Fprometheus-clickhouse-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinkingpoint%2Fprometheus-clickhouse-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinkingpoint%2Fprometheus-clickhouse-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinkingpoint","download_url":"https://codeload.github.com/sinkingpoint/prometheus-clickhouse-bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinkingpoint%2Fprometheus-clickhouse-bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28567911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-19T12:34:42.757Z","updated_at":"2026-01-19T12:34:42.807Z","avatar_url":"https://github.com/sinkingpoint.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus Clickhouse Bridge\n\nThis is a Go Daemon that provides a Prometheus Remote Write/Read interface on top of a Clickhouse database.\n\n## Usage\n\n```\nUsage: prometheus-clickhouse-bridge \u003ccommand\u003e\n\nFlags:\n  -h, --help                                      Show context-sensitive help.\n      --clickhouse-dsn=\"http://localhost:8123\"    The DSN to connect to Clickhouse with\n\nCommands:\n  provision\n    Provision the metrics table into a Clickhouse database\n\n  server\n    Start the remote Read/Write server\n```\n\n## Running\n\nIn order to run the bridge you'll need a Clickhouse server running. As a first step, you'll need to provision the metrics table into your Clickhouse database with the provision command:\n\n```\nprometheus-clickhouse-bridge provision\n```\n\nThis command assumes that your Clickhouse server is running on localhost:8123. If it isn't, then you can provide a different Clickhouse address with the `--clickhouse-dsn` flag.\n\nOnce you've provisioned the table, then you're all set to start ingesting metrics. Run the server with:\n\n```\nprometheus-clickhouse-bridge server\n```\n\nonce again, setting the `--clickhouse-dsn` flag if necessary.\n\nYou can then configure Prometheus to send remote read and write requests to the bridge:\n\n```yaml\nremote_write:\n  - url: http://localhost:4278/api/write\nremote_read:\n  - url: http://localhost:4278/api/read\n```\n\n## Limitations\n\nThere's a few limitations here, that I might iron out in the future:\n\n### We only support the single node version of Clickhouse\n\nWe provision a table with the `MergeTree` engine, which does not take advantage of Clickhouse's clustering abilities. We could move to a DistributedMergeTree and Replicated tables.\n\n### We don't support Exemplars\n\nThe bridge is only concerned with metrics at this point. Any exemplars in the pushes will be dropped, and remote read requests will never return exemplars.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinkingpoint%2Fprometheus-clickhouse-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinkingpoint%2Fprometheus-clickhouse-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinkingpoint%2Fprometheus-clickhouse-bridge/lists"}