Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 822 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 822 Bytes

test-clickhouse-prometheus

Test Prometheus remote-write/-read interface in ClickHouse.

This ClickHouse support relies on the experimental TimeSeries engine. Refer to the docs for details.

Run

% docker compose up

Execute a test query through Prometheus (the UI is runnin on http://127.0.0.1:9090)

% curl -v 'http://127.0.0.1:9090/api/v1/query?query=sum(ClickHouseAsyncMetrics_DiskUsed_default)'

Inspect the data with clickhouse-client

% docker container run --rm -ti --network test-clickhouse-prometheus_default --entrypoint=clickhouse clickhouse/clickhouse-server:head client -h clickhouse-server

d72188fcebe0 :) show tables
...