LinkMesh

Search docs, blog and changelog

ENDE
A row of identical matte black blocks on a dark workbench with a single rail laid across them and one blue sleeve on the rail: the existing checks stay in place and one layer is added
LinkMeshObservability Data Collection Management
ObservabilityOpenTelemetry

Checkmk → Observability

Keep the checks. Add the evidence. Manage it with LinkMesh.

linkmesh.io
Philippe BraxmeierPhilippe Braxmeier← Back to blog
7 min read

Going from Checkmk to observability is rarely a replacement project. Checkmk is good at what it does: it discovers services on a host, checks them against thresholds, and turns a service red when something is wrong. Teams that run it usually trust it, and they are right to.

The trouble starts one step after the alert. The service is CRIT, the on-call engineer is awake, and the next question is why. Checkmk has a state and a graph. The answer is in the logs of three other systems and in a request path nobody drew. Closing that gap means collecting logs, traces and application metrics with OpenTelemetry Collectors next to the Checkmk agent. LinkMesh is the control plane that keeps those collectors manageable once there are more than a handful. This post walks through the whole path.

Who this guide is for

Infrastructure and platform teams that run Checkmk (any edition) and are being asked for logs, traces or “observability” on top. Prerequisites: a working Checkmk site and root on a few hosts you are allowed to experiment on.

What Checkmk does well, and where it stops

Checkmk’s model is the host and the service. Every service has a state (OK, WARN, CRIT or UNKNOWN), and most of them have metrics attached. Around that model sits a great deal of accumulated knowledge: more than 2,000 check plugins, SNMP support for network and storage hardware, special agents for vendor APIs, and automatic service discovery. For “is this thing healthy right now” there is little reason to rebuild any of it.

The model stops at three points:

  • Logs are events, not data. Logwatch and the Event Console match patterns and raise a state. They do not keep searchable log volume you can query after the fact.
  • There is no request path. A check knows a service is slow. It does not know which downstream call made it slow. That needs distributed traces.
  • Questions have to be written in advance. Every check is a hypothesis someone had earlier. A failure mode nobody imagined has no check. We go into this distinction in From Monitoring to Observability.

What Checkmk’s own OpenTelemetry support covers

Checkmk has moved in this direction itself. Checkmk Ultimate ships an OpenTelemetry Collector that can receive OpenTelemetry metrics. Since version 2.5 those metrics are stored in a ClickHouse-based metric backend and become hosts and services through dynamic host management. The details are in Checkmk’s OpenTelemetry documentation.

Three properties matter when you plan around it. They reflect Checkmk’s documentation at the time of writing, so check them against the version you run:

  • It is a metrics integration. The documentation describes receiving metrics, not logs or traces.
  • It is part of Checkmk Ultimate, not of the Community or Pro editions.
  • The metric backend is switched off by default and keeps data for a fixed two weeks.

That makes it a good way to put application metrics next to your infrastructure checks. It is not a place for logs and traces, so those need a path of their own.

From Checkmk to observability with LinkMesh: who does what

The pattern is additive. Nothing is taken away from Checkmk. Four parts each do one job:

  • Checkmk keeps host and service states, hardware and SNMP checks, notifications and your existing escalation rules.
  • OpenTelemetry Collectors run next to the Checkmk agent on the hosts where you need more than a state. They collect log files, traces and metrics from instrumented applications over OTLP, and host metrics at a finer resolution than the check interval.
  • LinkMesh manages those collectors. You define sources, processing and routes once, centrally, and LinkMesh renders the configuration and pushes it to the right collectors over OpAMP. Telemetry never flows through LinkMesh. It goes from your collectors straight to your backends.
  • A backend of your choice stores and queries the data: Loki, Grafana Cloud, Elasticsearch, or a commercial platform. Application metrics can also go to Checkmk Ultimate if you run it.

Without the third part, the second one does not scale. Checkmk gives you central configuration through its rules and, in the commercial editions, the agent bakery. A plain OpenTelemetry Collector gives you a YAML file per host. Fifty collectors configured by hand are fifty files that slowly stop matching each other, and nothing tells you when one does.

The LinkMesh topology view with collectors on the left, destinations on the right, and the live record rate on every route between them.

The path, step by step

  1. Install LinkMesh on your own infrastructure. It is self-hosted, like your Checkmk site. The quickstart takes a few minutes.
  2. Pick one service that hurts. Choose the one where an alert regularly leads to an hour of SSH and grep. Do not start with the whole estate.
  3. Enrol collectors on that service’s hosts. Install a collector beside the Checkmk agent and point it at LinkMesh with a token. It appears in the fleet view with its status and version. Put the hosts into one collector group, so they share a configuration. See enrol a collector.
  4. Add sources from the catalog. Choose a file source for the application’s log files, host metrics, and an OTLP source for the application itself. Change nothing in Checkmk.
  5. Look at real data before you ship it. Capture a sample from the running collector and run it through your processors in the preview. You see what each step keeps, changes or drops. This is where you parse the log format, drop debug noise and mask personal data. See preview a pipeline before you ship.
  6. Route to a destination. Connect the sources to your backend. The topology view shows the record rate per route, so you can see that data is flowing and how much.
  7. Instrument the application for traces. For JVM services this needs no code change. See the OpenTelemetry Java agent in production.
  8. Link the two worlds. Use the same host names in both, and put a link to the log and trace view into the Checkmk notification, so the alert opens the evidence.

After the first service, the next one is mostly a repeat of steps 3 and 4. The pipeline and the destination already exist.

What stays in Checkmk

Some parts of Checkmk have no cheap OpenTelemetry equivalent, and moving them buys nothing:

  • SNMP and hardware checks. The collector has an SNMP receiver, but you would be rewriting by hand what Checkmk’s plugins already know about each device.
  • State-based alerting and escalation. OpenTelemetry collects and transports. It does not replace your on-call rules. What OpenTelemetry can and cannot replace draws that line in detail.
  • Service discovery. Checkmk finding a new filesystem or interface on its own is work you would otherwise do in configuration.

Checkmk can also watch the new layer. The collector is a service on the host like any other, so a Checkmk check on that service tells you when a collector process is down. LinkMesh covers the other half: it shows which collectors are offline, which configuration each one actually applied, and it can alert when the throughput of a route drops. See set up alerting.

If the goal later becomes fewer agents per host, treat that as a separate project with its own business case. Consolidating monitoring agents describes what that takes and what you lose.

The honest trade-offs

  • Two agents per host. The collector is a second process to patch and watch. LinkMesh takes the configuration work off the hosts and flags collectors that run an outdated version, but the process and its upgrades are still yours.
  • One more system to run. LinkMesh is a server you operate, next to your Checkmk site and your backend. Below a handful of collectors, hand-written YAML is still less work.
  • Two places to look, until the notification links them.
  • Log and trace volume costs money in a way check results never did. Drop and sample at the collector, before the data reaches a backend that bills by volume. LinkMesh itself is priced per collector, not per gigabyte.
  • Traces need developers. Logs and metrics are an infrastructure task. Tracing is a roadmap conversation with the teams that own the applications.
Adding observability next to Checkmk?

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.