ClickHouse has become a common place to keep logs, traces and metrics. ClickHouse ships its own observability stack, ClickStack. Other platforms store their telemetry in it as well, and since November 2026 that includes Zabbix 8.0. It is fast on large volumes, it compresses well, and it speaks SQL.
What these setups share is the way the data gets in. It arrives through OpenTelemetry Collectors. ClickHouse settles where telemetry is stored. It does not settle who configures the fifty or five hundred collectors in front of it, and with ClickHouse that configuration matters more than with most backends. This post explains why, and where LinkMesh fits.
Platform and observability teams that store telemetry in ClickHouse, or plan to, through ClickStack or through the collector’s ClickHouse exporter, and that run more than a handful of collectors.
Why ClickHouse makes the collector layer matter
Three properties of ClickHouse reach back into the collector configuration.
Inserts want to be large. Every insert creates a part on disk that ClickHouse has to merge later. The ClickHouse exporter’s README passes on ClickHouse’s recommendation: at least 5,000 rows per insert, or no more than one insert per second. A collector with a small batch setting does not fail. It works, and it loads the database with thousands of small parts.
The table schema belongs to the exporter version. By default the exporter creates
its tables itself. For production, its README recommends the opposite: create the
tables yourself and switch create_schema off, so that collectors do not race to
create them. New exporter versions can add columns, and some table changes are not
backwards compatible. So the collector version is something you want to know for every
collector that writes to ClickHouse.
Retention is set when the table is created. The ttl setting becomes part of the
table definition on the first start. Our ClickHouse snippet
shows what the exporter writes. After that, retention is a property of the table, and
you change it in the database.
So three things have to be the same on every collector that writes to ClickHouse: the batch size, the schema mode and the version. That is a fleet problem.
Agents and gateways: who writes to ClickHouse
ClickHouse’s own documentation describes two roles for collectors, in its guide to the ClickStack OpenTelemetry collector:
- Agents run at the edge, on servers and Kubernetes nodes or next to an application. They collect and forward.
- Gateways run as a service per cluster, data center or region. They receive OTLP from agents and SDKs, do the heavier processing and write to ClickHouse.
The split suits ClickHouse. A gateway that aggregates many agents fills large batches quickly, and it keeps the number of connections to the database small. ClickHouse recommends doing transformations on the gateways and keeping the agents light.
ClickStack ships its own collector distribution for the gateway role. It connects to the ClickStack UI over OpAMP, and that connection secures the OTLP endpoint with an ingestion key. For the agent role, the documentation points to the regular contrib distribution.
So the gateway may be looked after. The agents are yours. Each one has a YAML file with the gateway address, the ingestion key, the receivers for that host, and whatever filtering and masking you decided on. They are the part that grows with every server and every cluster.
Figure 1. Agents collect at the edge, gateways batch and insert. The control plane sends configuration and nothing else.
What LinkMesh does in this picture
LinkMesh is a self-hosted control plane for OpenTelemetry Collectors. It does not replace ClickHouse or ClickStack, and it does not store telemetry. It manages the configuration of the collectors in front of them.
One place for collector configuration. You define sources, processing and routes once, centrally. Collectors belong to collector groups that share a configuration: Linux agents, Kubernetes agents, gateways. LinkMesh renders the configuration and pushes it to the right collectors over OpAMP. It shows which configuration each collector actually applied, and which collectors are offline or run an outdated version.
ClickHouse as a destination. There are two ways to reach ClickHouse. Agents send
OTLP to a gateway, which is an ordinary OTLP destination. A gateway you run yourself
writes to ClickHouse with the clickhouse exporter. In LinkMesh that is a
custom destination: you write
the exporter’s settings once, as YAML. Credentials are stored as
named secrets and are not part of the
configuration that gets committed.
The settings that matter for ClickHouse sit in that one definition. As plain collector configuration they look like this:
exporters:
clickhouse:
endpoint: tcp://clickhouse.example.internal:9000?dial_timeout=10s
database: otel
username: ${env:CLICKHOUSE_USER}
password: ${env:CLICKHOUSE_PASSWORD}
create_schema: false # you create and upgrade the tables
sending_queue:
num_consumers: 10
batch:
min_size: 5000 # rows per insert
flush_timeout: 5s # send a partial batch after this delay
Change min_size once, and every gateway in the group gets it.
Pipelines you can check before they run. In the preview you run a captured sample through your processors and see what each step keeps, changes or drops. The topology view shows the record rate on every route, so you see how much each gateway is about to insert. LinkMesh can also alert when the throughput of a route drops. See set up alerting.
Growth without more YAML. A new server or cluster gets a collector. The collector is enrolled with a token and receives the configuration of its group. When one gateway is not enough, agents can balance across several, as in our snippet for agents to a gateway tier. And because LinkMesh flags collectors on an outdated version, you know where you stand before an exporter upgrade that touches the tables. See keeping a collector fleet up to date.
No tie to one vendor. Agents and gateways speak OTLP to each other, so the backend behind the gateway can change without touching the hosts. A second destination next to ClickHouse is one more route. That is how a migration into ClickHouse, or out of it, runs without a gap. See dual-shipping without duplicates. The control plane is self-hosted and belongs to no backend. Telemetry never flows through it.
What LinkMesh does not do
- It does not manage ClickHouse. Tables, retention, partitioning and the cluster layout stay database work.
- It leaves the ClickStack gateway alone. That collector takes its configuration from the ClickStack UI over OpAMP, and a collector reports to one OpAMP server. To manage a gateway with LinkMesh, run your own with the contrib distribution and the ClickHouse exporter. ClickHouse’s documentation allows for that, and recommends its own distribution where possible.
- Small setups do not need it. If your applications send straight to one ClickStack gateway, there is no fleet to manage. Below a handful of collectors, hand-written YAML is less work than another system.
- The exporter is still maturing. In contrib v0.165.0 it is rated beta for logs and traces and alpha for metrics. Read the changelog before you upgrade.
- One more system to run. LinkMesh is a server you operate. It is priced per collector, not per gigabyte.
LinkMesh is a self-hosted control plane for OpenTelemetry Collectors: enrol collectors, build pipelines centrally and roll configuration out over OpAMP, with a versioned record of what each node runs. Telemetry never flows through LinkMesh. It stays on your infrastructure. See the features, or set one up in a few minutes.