Skip to content

ClickHouse Metrics

Lorenzo Mangani edited this page Jan 13, 2021 · 28 revisions

ClickHouse Metrics

cLoki provides a simplified query model for querying any data in clickhouse to generate metrics and tags dynamically.

Query Options
parameter description
db clickhouse database name
table clickhouse table name
tag column(s) for tags, comma separated
metric function for metric values
where where condition (optional)
interval interval in seconds (optional)

cloki

Example

clickhouse({ db="my_database", table="my_table", tag="source_ip", metric="avg(mos)", where="mos > 0", interval="60" })
Clone this wiki locally