What CoIsland watches in ClickHouse

Each monitor kind brings its own query and its own card in the notch.

How to monitor ClickHouse from your Mac’s notch

A CoIsland monitor runs on its own schedule and opens the notch only when the answer changes: a new failed query, a mutation that stopped moving, a new row, or a count crossing a line.

-- name: Queries failing on any replica
-- kind: clickhouse.failed-queries
-- connector: events
-- every: 5m

lookback:1h cluster:default

Connect ClickHouse covers every field, the grants and each error. PostgreSQL and MySQL work the same way for SQL; all connectors share one page.

Connect it in three steps

  1. Get the service's HTTPS address, a user and its password: ClickHouse Cloud shows them under Connect.

  2. Add a ClickHouse connector. Test connector says who you are, the version, and which system tables the health monitors can read.

  3. Pick a kind or an example: SQL checks every 15 minutes, failed and long queries and replication every 5, unless you change it.

Built for ClickHouse

  • Every query is sent with readonly=1, so the server itself refuses a write; a second statement or a write word is refused before it is sent.
  • The password stays in the macOS Keychain and goes only in a header, over HTTPS (plain HTTP only to a server on your Mac).
  • The server waits for the end of each query before it answers, so a failure is never read as half a result.
  • A user without access to a system table is told which grant a health monitor needs.

Then hand it to an agent

A click on the alert opens the agent in a terminal under it, with the whole alert as its first message.

ClickHouse questions

Can CoIsland change anything in ClickHouse?

No. Every query carries readonly=1, which makes the server refuse writes and setting changes whatever the user may do. SQL that writes, or holds a second statement, is refused before anything is sent.

Does a check wake an idle ClickHouse Cloud service?

Yes: any query wakes an idle service, which then stays on until it idles again. Check less often, or watch a service that does not idle.

Which grants do the health monitors need?

SELECT on the system table each one reads: system.query_log, system.processes, system.mutations, system.parts, system.replicas or system.disks. Test connector lists the ones the user cannot read.

Other connectors

Put your work stack in the notch

Regular price: $59.99 Early bird price: $19.99 once, for 2 Macs. Native for Apple Silicon, macOS 14 and later.

Early bird price until October 25