ClickhouseAlex FedotyevProblem & solution
Our vision for the ClickHouse Grafana plugin
Summary
ClickHouse is widely used with Grafana for observability and real-time analytics, but requiring users to write raw SQL creates onboarding and exploration friction. To simplify the user experience, planned updates to the ClickHouse Grafana plugin introduce native interfaces such as click-to-filter actions, categorized OpenTelemetry attribute displays, and guided variable editors. A new compact search mode leverages the hasToken function for fast log filtering, while a visual metrics builder simplifies aggregating OpenTelemetry and Kubernetes metrics without manual queries. Prebuilt dashboards for logs and traces will accelerate initial setup alongside automated annotations derived from service version changes and Kubernetes lifecycle events. Future prototypes also explore bidirectional SQL AST parsing for seamless query editing, JWT user identity forwarding for fine-grained access control, and conversational query generation.
Context
Using ClickHouse with Grafana for observability and analytics often requires engineers to write manual SQL queries and memorize schemas. Furthermore, the existing ClickHouse Grafana plugin lacks support for several built-in Grafana capabilities, forcing users to construct aggregations, dashboard variables, and annotations by hand while losing working filter context across datasource switches.
Approach / What changed
The proposed vision adds native Grafana features to the ClickHouse plugin, including click-to-filter log navigation, OpenTelemetry attribute grouping, a guided variable editor, and automated annotations derived from OTel resource attributes. It introduces compact log and metrics builders powered by functions like hasToken(), ships out-of-the-box dashboards for logs and traces, and explores two-way AST SQL parsing and JWT forwarding for fine-grained access control.
Takeaways
The planned compact search mode uses ClickHouse's hasToken() function to execute full-text searches on indexed columns across billions of log lines without requiring manual SQL.
Annotations can be automatically generated by detecting changes in OpenTelemetry resource attributes like service.version or container.image.tag, eliminating external webhooks or API calls.
JWT forwarding is being explored to pass individual Grafana user identities to ClickHouse queries, enabling audit trails, user-level query cost tracking, and row-level access control.
Source and freshness
- Source
- clickhouse.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.