---
title: "Visualizing Data with ClickHouse - Part 1 - Grafana"
description: "Grafana connects to ClickHouse through the official ClickHouse plugin (version 2.x adds JSON and HTTP support) by creating a datasource and building dashboard panels with a query builder or raw SQL."
url: "https://swe.quest/articles/visualizing-data-with-clickhouse-part-1-grafana-6207d162d247fcd5"
canonical: "https://clickhouse.com/blog/visualizing-data-with-grafana"
source: "ClickHouse"
published: "2022-10-07"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["observability","analytics","sql"]
---

# Visualizing Data with ClickHouse - Part 1 - Grafana

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2022-10-07, 5 min read, How-to. Original: [https://clickhouse.com/blog/visualizing-data-with-grafana](https://clickhouse.com/blog/visualizing-data-with-grafana)

## Summary

Grafana connects to ClickHouse through the official ClickHouse plugin (version 2.x adds JSON and HTTP support) by creating a datasource and building dashboard panels with a query builder or raw SQL. Worked examples against the play.clickhouse.com datasets cover a monthly bar chart of Hacker News mentions, multi-series forex lines using the $\_\_timeFilter macro and argMax, and candlesticks built with argMin/argMax/min/max. They also include a geohash-bucketed temperature heatmap on GeoMap and a log explorer view whose severity level is derived from HTTP status codes. Multi-line charts need a string series column, and SETTINGS max\_result\_rows lifts the playground's result limits.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)

## Prerequisites

- SQL aggregation basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- Time series data concepts

## Keywords

ClickHouse, Grafana, Grafana Cloud, GeoMap, geohashEncode, argMax

## Related posts

- [Visualizing Data with ClickHouse - Part 3 - Metabase](https://swe.quest/articles/visualizing-data-with-clickhouse-part-3-metabase-ad449fea60496af1.md): ClickHouse · 2022-10-19 · Medium · 7 min read · Analytics & OLAP, SQL
  Metabase connects to ClickHouse via a plugin driver over the HTTP port and suits less SQL-savvy business users through its drag-and-drop "question" builder, while a SQL editor handles complex charts by pushing all transformation into the query.
- [Visualizing Data with ClickHouse - Part 2 - Superset](https://swe.quest/articles/visualizing-data-with-clickhouse-part-2-superset-bc336c7310047e5c.md): ClickHouse · 2022-10-12 · Medium · 7 min read · Analytics & OLAP, SQL, Databases
  Apache Superset can be run via docker-compose with the clickhouse-connect driver to build charts and dashboards over ClickHouse data.
- [ClickHouse Plugin for Grafana - 2.0 Release](https://swe.quest/articles/clickhouse-plugin-for-grafana-2-0-release-6cc77a953b0e269e.md): ClickHouse · 2022-09-02 · Medium · 9 min read · Analytics & OLAP, Observability, SQL
  Version 2.0 of the ClickHouse Grafana plugin drops its client-side SQL AST parser and implements ad-hoc filters with ClickHouse's new \`additional\_table\_filters\` setting (22.7+), so the server injects each filter into the correct clauses, including subqueries.
- [ClickStack SQL Charting and Alerting](https://swe.quest/articles/clickstack-sql-charting-and-alerting-065ba971d00da162.md): ClickHouse · 2026-05-13 · Medium · 9 min read · Observability, SQL, Analytics & OLAP
  ClickStack now supports charts and alerts defined by arbitrary ClickHouse SQL, going beyond what predefined query builders can express.
- [Monitor your ClickHouse Cloud services with the new Prometheus/Grafana Mix-in](https://swe.quest/articles/monitor-your-clickhouse-cloud-services-with-the-new-prometheus-grafana-mix-in-d5de8c9f127ab682.md): ClickHouse · 2025-05-12 · Medium · 3 min read · Observability, Analytics & OLAP, Cloud platforms
  ClickHouse Cloud now offers a Prometheus/Grafana mix-in: a pre-built Grafana dashboard, nearly identical to ClickHouse's internal one, fed by the cloud API's Prometheus endpoint.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
