---
title: "Our vision for the ClickHouse Grafana plugin"
description: "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."
---

# Our vision for the ClickHouse Grafana plugin

[Clickhouse](https://yomu.fyi/company/clickhouse) · Alex Fedotyev · Apr 15, 2026

**Type:** Problem & solution

## 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.

**Tags:** [Developer Experience](https://yomu.fyi/topic/developer-experience), [Monitoring](https://yomu.fyi/topic/monitoring), [Observability](https://yomu.fyi/topic/observability)

- Source: [Clickhouse](https://clickhouse.com/blog/grafana-plugin-vision)
- Source URL: https://clickhouse.com/blog/grafana-plugin-vision
- Ingested by Yomu: 2026-08-28T01:24:21.119Z

[Read original post](https://clickhouse.com/blog/grafana-plugin-vision)
