What you’ll get: ewake can query the traces you store in ClickHouse with SQL, discover your schema automatically, and correlate latency or errors with alerts and deployments, without requiring manual query construction.
Two ways to connect
The ClickHouse form offers two ways.Prerequisites
- A ClickHouse deployment (ClickHouse Cloud or self-hosted) holding your trace data
- The HTTP interface reachable from ewake (port
8443for HTTPS,8123for plain HTTP) - Access to run
CREATE USERandGRANT— an admin user, or the SQL console on ClickHouse Cloud
ewake never assumes a fixed schema during an investigation. It reads
system.tables and system.columns to discover your trace tables and their column types, then writes SQL against what it actually finds, so a homegrown schema works without any naming convention.Service map. ewake also builds your services and the calls between them from your traces, about once a day. For this, it recognizes the table layout of the OpenTelemetry Collector ClickHouse exporter (
otel_traces, as used by ClickStack) and of SigNoz. It finds the table by its columns, not by its name.Configuration
1
Create a dedicated read-only user
Create a user for ewake in SQL and grant it This SQL setup works on both self-hosted ClickHouse and ClickHouse Cloud, which has no server config files.
SELECT on your trace tables plus system.tables and system.columns — and nothing else.Why the grants, not just
readonly. The SELECT grants are the real boundary: they let ewake read your schema and traces while blocking the table functions (url, remote, file, mysql, postgresql) and system.query_log that a broad user could use to reach out of the database. readonly = 2 does not restrict those, so ewake relies on the grants instead. Grant each trace table by name rather than a whole database.Why
readonly = 1 with CHANGEABLE_IN_READONLY. ewake sends bounded caps on every query as URL settings. The queries that build your service map also send two join settings, and their last fallback sends read_overflow_mode = 'break' to sample a very large span table. readonly = 1 rejects any setting change, so those eight are re-allowed as bounded, session-settable values via CHANGEABLE_IN_READONLY — every other setting stays forbidden. Keep each MAX at or above the value ewake sends: a MAX below it makes ClickHouse reject the query outright.2
Get your HTTP endpoint
ClickHouse Cloud: find the HTTPS endpoint in your service under Connect — it looks like
https://<id>.<region>.clickhouse.cloud:8443.Self-hosted: use the base URL of the HTTP interface (e.g. https://clickhouse.yourcompany.com:8443, or http://…:8123 without TLS).3
Open the ClickHouse integration in ewake
In your ewake dashboard, go to Integrations and click the ClickHouse tile under Add more. At the top of the form, pick Directly.
4
Enter your credentials
If your ClickHouse sits behind an authenticating proxy (e.g. Cloudflare Access), add its service-token headers under Custom headers — ewake sends them with every request.
5
Choose where links open (optional)
Each query and trace in an investigation comes with a link. By default, it opens ClickHouse Play on the ClickHouse HTTP URL. If your team cannot open that URL, for example a private VPC endpoint, expand Where links open (optional) and give the Grafana where your team reads ClickHouse:
A trace also opens in Grafana’s trace view when your spans are in an OpenTelemetry exporter table. To change this later, go to Integrations → ClickHouse → Configure and click Replace credentials on the server. Edit Where links open, and leave Username and Password empty to keep the stored ones.
6
Test and save
Click Test connection to verify the connection, then click Save. The test checks that the credentials are accepted and that the user can list its granted tables. With a Grafana for links, it also says whether traces open in Grafana’s trace view.
ClickHouse is connected. Ewake can now query your traces during investigations.
Behind Cloudflare Access or a proxy
If your ClickHouse endpoint sits behind an authenticating proxy, add the credentials it expects under Custom headers in the same dialog. For a Cloudflare Access service token that means two headers:
Ewake sends these with every request. Values are stored encrypted, and are not shown again after saving, leaving the fields empty when you edit the connection keeps the headers you already saved.
Without this, a connection test against a proxied endpoint fails with an authentication or redirect error even though the URL and API key are both correct. It’s the most common cause of a test failing on a working instance.
ewake queries ClickHouse in read-only mode over the HTTP interface. It never writes rows or modifies your ClickHouse configuration, and it caps every query’s runtime, row count and bytes read.