Adding Analytics to an Application in under 10 minutes with ClickHouse Cloud Query Endpoints
ClickHouse Cloud's beta API endpoints turn a saved parameterized SQL query into a secure HTTP POST endpoint, moving SQL out of application code so queries can change without redeploying. The walkthrough adds GitHub stars, issues, forks and PR counts to the ClickPy PyPI dashboard. A query resolves each package's GitHub repo ID from PyPI metadata and aggregates the GitHub events table with uniqExactIf. The endpoint is bound to a read-only role with IP-keyed quotas and optional CORS, then called from a Next.js/React component via a generic fetch helper, returning any of ClickHouse's output formats such as JSONEachRow.
Related posts
- Announcing the new ClickHouse SQL Playground
ClickHouse mediumAdept
sql.clickhouse.com is a new public SQL playground offering over 35 datasets (60 TB) and 220 example queries, with syntax highlighting, autocomplete, query parameters, basic charting via Apache ECharts and shareable links. It is a NextJS/React single-page app talking directly to ClickHouse's HTTP interface. Read-only credentials are exposed safely by combining RBAC, query complexity limits (10 billion rows read, 1000 rows returned) and per-IP quotas of 60 queries per hour. The service runs on a fixed 3-node, 30-vCPU ClickHouse Cloud cluster backed by object storage. Live query progress polls system.processes every 100ms by query ID under a separate monitor user, avoiding HTTP progress headers that the browser fetch API can't read.
- What's new in ClickStack - Aug ’26
ClickHouse mediumAdept
ClickStack v2.34–v2.38 centers on dashboards: dashboard variables are now GA, letting a filter's selection be substituted into raw SQL, builder fields, Lucene and PromQL, with macros like $__filter and $__conditionalAll to handle empty selections and chained dropdowns. PromQL querying over ClickHouse's new TimeSeries engine (private preview, Prometheus remote write) lets Prometheus metrics sit alongside logs and traces. Charts gain arithmetic formulas over series, a metrics explorer, and release markers derived from service.version. Also new are a beta LLM observability dashboard built on OpenTelemetry GenAI conventions, plus alerting upgrades: up to ten targets, names and tags, evaluation history via API, and richer webhook payloads with stable alert IDs.
- ClickHouse Plugin for Grafana - 2.0 Release
ClickHouse mediumAdept
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. The release also adds HTTP transport via clickhouse-go's native-format-over-HTTP support, which lets traffic go through load balancers and proxies such as ch-proxy, and splits the connection and query timeouts. It adds JSON Object type support, with leaf nodes usable as columns and logs shown in the Explore view and Logs Panel. Breaking changes: the old automatic 'All' variable optimization is replaced by a manual `$__conditionalAll` macro, ad-hoc filters require ClickHouse 22.7+, and read-only users need readonly=2.
- ClickHouse Newsletter July 2023: Seeing Clearly
ClickHouse mediumAdept
ClickHouse v23.6 adds 10 features, 12 performance optimisations and 31 bug fixes. Highlights include exploiting natural sort order in almost-sorted columns that aren't in the ordering key, MongoDB integration support up to v6, and a transform function that now works with all data types. The query of the month uses the windowFunnel function on the GitHub Events dataset for a fork-to-PR funnel analysis. About 17% of ClickHouse forkers open a PR within 30 days, which ranks 22nd among repositories with more than 25k stars and 5k forks. The rest of the issue is links and upcoming meetups and trainings.
- What's new in ClickStack - September and October '26
ClickHouse mediumAdept
ClickStack v2.39 through v2.42 add ad hoc dashboard filters with click-to-filter from tiles, single-select and required filters, saved relative time ranges, and dashboard variables in markdown tiles. PromQL now works across every chart type, including multi-expression time series, number tiles, tables and heatmaps, and supports Grafana-compatible macros and the external dashboards API. Every query now carries a JSON log_comment and an hdx- prefixed query_id, so read load in system.query_log can be traced back to a specific dashboard, tile, alert or MCP tool. Other changes include a Trace logs tab, exception panels driven by OpenTelemetry attributes, search histogram group-by, and row export. Ad hoc filters and PromQL remain experimental and are enabled with environment flags.