Self-telemetry
The per-component numbers you see on the topology canvas —
records/sec on each receiver, errors/sec on each exporter, queue
depth on the backed-up edge — come from the collector itself. Every
collector pushes its own internal metrics (the otelcol_* family that
otelcol-contrib emits about itself) to LinkMesh over standard OTLP. LinkMesh maps those metrics onto the
pipeline shape and renders them.
The chain has no proprietary middleware in the data path. The collector exposes its metrics the same way it always has; LinkMesh just becomes one of the destinations.
What you see in the UI
Section titled “What you see in the UI”For every collector enrolled over OpAMP, the topology canvas shows:
- Per-edge throughput labels — records/sec on each connection between a receiver, processor, and exporter. Updated every ~30s.
- Per-component error rates — errors/sec, computed from the
collector’s
refused/send_failedcounters. - Exporter queue depth — current queue size vs. capacity, useful for spotting back-pressure before it becomes data loss.
- Host metrics on the collector detail page — CPU, memory, uptime, restart count.
For what each sparkline, queue bar and error flag on the canvas actually means — element by element — see Reading throughput on the canvas.
If a number is missing where you expect one, see Self-telemetry troubleshooting.
How it works
Section titled “How it works”flowchart LR
subgraph host["Managed host"]
collector["Collector<br/>(otelcol-contrib)"]
scrape["service.telemetry<br/>metrics exporter"]
internal["Internal metrics<br/>otelcol_receiver_accepted_logs<br/>otelcol_exporter_sent_metric_points<br/>…"]
collector --> internal
internal --> scrape
end
scrape -- "OTLP/HTTP + Bearer<br/>POST /v1/metrics" --> server["LinkMesh server<br/>OTLP receiver"]
server -- "translates otelcol_*<br/>into ComponentThroughput" --> ui["Topology canvas<br/>per-edge numbers + dashboards"]
Three pieces compose:
-
The collector exposes its own internal metrics through its built-in
service.telemetry.metricsexporter. These metrics have been part of every OTel collector since v0.85 — nothing LinkMesh-specific. -
The collector pushes those metrics over OTLP to a destination LinkMesh offers it over OpAMP at enrollment time. The destination URL is
<externalUrl>/v1/metrics— which is why the server’sexternalUrlmust be set: with no public address to hand out, the offer is never made and the whole fleet reports zeros. The Authorization header is a per-collector bearer token, used only for this push. -
The LinkMesh server translates the standard
otelcol_*metrics into per-component throughput records. The metric names (otelcol_receiver_accepted_*,otelcol_exporter_sent_*, etc.) map onto receivers/processors/exporters by their OTel SDK instance name; rate computation happens at read time so the UI stays responsive.
Where the bearer token comes from
Section titled “Where the bearer token comes from”The bearer is minted once at enrollment and delivered over OpAMP,
so there is nothing to set up on the collector host. LinkMesh’s OpAMP
server mints the token immediately after the collector’s first
handshake and pushes it via OpAMP’s ConnectionSettings.OwnMetrics
offer. The supervisor receives it and installs it on the collector’s
own_metrics pipeline. You see a registered then
own_metrics_offered event on the collector’s Events tab.
The bearer is opaque to the operator; there’s no UI surface to copy
it around. To rotate it, deregister and re-enroll the collector, which
revokes the old token and mints a fresh one. The API can also reissue
it in place for a connected collector
(POST /collectors/{id}/own-metrics-token), delivering the new token
over OpAMP.
What gets reported
Section titled “What gets reported”The collector’s otelcol_* self-metrics, mapped per OTel SDK
convention:
| What | Collector metric | LinkMesh field |
|---|---|---|
| Receiver accepted | otelcol_receiver_accepted_* |
recordsPerSec |
| Receiver refused | otelcol_receiver_refused_* |
errorsPerSec |
| Processor incoming | otelcol_processor_incoming_items |
incomingPerSec |
| Processor outgoing | otelcol_processor_outgoing_items |
recordsPerSec |
| Exporter sent | otelcol_exporter_sent_* |
recordsPerSec |
| Exporter send failed | otelcol_exporter_send_failed_* |
errorsPerSec |
| Exporter queue size | otelcol_exporter_queue_size |
queueSize |
| Exporter queue capacity | otelcol_exporter_queue_capacity |
queueCapacity |
Plus host metrics on the collector detail page:
| What | Collector metric | LinkMesh field |
|---|---|---|
| CPU utilisation | system.cpu.utilization |
hostCpuPercent |
| Memory utilisation | system.memory.utilization |
hostMemoryPercent |
| Process CPU | process.cpu.utilization |
cpuPercent |
| Process memory | process.memory.usage |
memoryMb |
| Uptime | process.uptime |
uptimeSeconds |
What does NOT get reported
Section titled “What does NOT get reported”The OTLP push is scoped to internal collector metrics only. None of the following ever leaves the collector via the LinkMesh OTLP endpoint:
- Customer telemetry content (logs, metrics, traces flowing through the pipeline). That goes to the destinations you configured — Grafana Cloud, Loki, Mimir, whatever.
- Collector application logs (the collector’s own output, which the
supervisor writes to
agent.login its storage directory). They stay on the host. - Collector configuration. LinkMesh already knows it — it generated it. The collector doesn’t re-emit it.
- Any host-process data outside the collector’s own
service.telemetryscope.
The push is exactly the same payload an operator would get by
scraping the collector’s internal /metrics endpoint and forwarding
it to their own backend. LinkMesh just happens to be one such backend.
You see throughput numbers without touching the collector’s local config. How config arrives at the collector is a separate channel (see Native remote config); self-telemetry only reports back.
Self-telemetry over time
Section titled “Self-telemetry over time”LinkMesh keeps these figures for 24 hours — enough to drive the topology canvas and the last-day charts on the collector detail page. Long-term retention belongs in your own backends, the same ones your pipeline destinations write to. To keep a collector’s CPU and memory history for weeks, route a Host Metrics source on the collector to your metrics backend; see When to resize a collector.
For a longer history of the otelcol_* figures themselves, switch on the
collector’s local Prometheus endpoint and scrape it with a Prometheus source
routed to your backend; LinkMesh’s own push stays as it is. The same page covers the
collector’s internal log level. See
Debug a collector and scrape its internal metrics.
See also
Section titled “See also”-
Native remote config — the other half of the enrollment story: how config gets to the collector over OpAMP.
-
Enrol a collector — walkthrough; the self-telemetry path lights up automatically as part of step 4.
-
Self-telemetry troubleshooting — when the numbers don’t show up.
-
Debug a collector and scrape its internal metrics — internal log level, a local Prometheus endpoint, and your own backend.
-
Set up alerting — get notified when these metrics cross a threshold, instead of watching them.
-
Credentials & tokens — the per-collector own-metrics token in the context of LinkMesh’s other credentials.
-
Security & encryption — how the own-metrics push fits the one-TLS-front-door trust model.