BetaFree-to-use OpAMP fleet management for Windows & LinuxQuick Start →

Telemetry Governor

Data Plane Governance

Telemetry Insights, Recurring Pattern Analysis & Edge Governance Engine

The Telemetry Governor is CollectorCtrl's telemetry insights and governance engine. It taps a uniform sample of each collector's logs and spans (every severity at the same rate, 10% by default), groups the sample into recurring patterns, and ranks them by how often they occur, so platform teams and SREs can see which patterns are worth reducing. You get this without permanently storing raw data.

Governor ranks patterns by what it received. It does not estimate total production volume, cost or savings, and it is not an alerting or error-capture system: confirm a pattern's real volume and investigate individual errors in your observability platform.

It helps engineering teams identify log fragmentation, isolate recurring non-actionable noise, and generate appropriate OpenTelemetry YAML processor configurations that can be deployed back to the fleet via OpAMP to fix issues directly at the source. It also provides deep visibility into APM trace patterns and latency percentiles.

Telemetry Insights Explorer — Log Pattern Landscape, Clustering & Normalization Rules Expand


How Telemetry Governor Operates

The telemetry tap feature injects non-invasive configuration into the selected collector YAML and adds defined processors and exporters to the collector pipeline:

  1. Non-Invasive Mirroring: Targeted collectors mirror a uniform sample of their logs and spans (every severity at the same rate) to the CollectorCtrl server over authenticated OTLP/HTTP. Metrics are forwarded unsampled.
  2. Summarized & Dropped: The sampled data is summarized and visualized in the Telemetry Insights Explorer so you do not have to permanently store raw data. Raw records in the transient hot store are kept for 1 to 7 days maximum and then automatically discarded.
  3. Optional S3 & OTLP Streaming: If you wish, you can also forward the same sample to Amazon S3 (for on-demand Athena queries) or to an external OTLP endpoint. These destinations receive the sample, not every record.
  4. Targeted Sampling: Taps can be enabled on selected collectors. Use one sampling percentage across the fleet where you can: pattern counts compare fairly only between sources sampled at the same rate.

Explore Telemetry Governor Features

Navigate into the specialized sections below to explore stream taps, destination management, and YAML tap templating:


1. Key Production Use Cases

Rather than making unverified monetary claims, Telemetry Governor provides engineering teams with the analytical capabilities needed to take informed, targeted actions:

1. Recurring Pattern Analysis & Optimization

Rank the most frequent log patterns and span routes per service and source, and identify recurring noise (such as Kubernetes health checks, verbose debug statements, or repeated polling logs). For a chosen pattern, generate a targeted OpenTelemetry filter, sampling or normalize rule, preview it against the stored samples, and apply it at the collector edge.

2. Pattern Summaries for AI Agents

The same pattern ranking is available to AI agents through the MCP server (governor_top_patterns, governor_optimize_preview). Agents can see which recurring patterns dominate a service and draft a rule for review. Because the tap is a sample, agents should use your observability platform for complete error data and individual incidents.

3. Log Fragmentation Discovery & Edge Remediation

Detect split multiline stack traces (such as Java exceptions or Go panics broken into dozens of disconnected single-line log records by container runtimes). Telemetry Governor identifies these fragmented clusters, highlights missing severity levels, and empowers SREs to craft and deploy targeted OpenTelemetry Contrib recombination rules back to the collector fleet to fix log fragmentation at the source.

4. Direct Low-Cost S3 Data Lake Archival

Create parallel pipelines to port the tapped sample directly to an S3 data lake for on-demand Athena SQL queries. The archive holds the sample, not every record, so counts there are counts within the sample.


2. What the Counts Mean

Telemetry Insights reports how many records Governor received. It does not convert them into estimated production volume.

Why one sampling rate for every severity

The tap samples warnings, errors and error spans at the same rate as everything else. Because the sampling is random, a pattern's share of the sample matches its share of the real stream, so the ranking order is reliable within a source and across sources that share a rate.

For example, at 10% a host that logs Order <NUM> placed 100,000 times and Cache hit <*> 50,000 times sends about 10,000 and 5,000 records. The 2:1 ratio, and the ranking, match production.

What it can and cannot show

  • Frequent patterns are always seen; rare ones may not be. The chance a pattern that occurred n times is missing from a 10% sample is 0.9ⁿ: about 35% for 10 occurrences, 4% for 30, and effectively 0 for 100 or more. That is fine for finding volume drivers; use your observability platform for alerting and for investigating individual errors.
  • Suggestions need enough data. A pattern is suggested for review once it has at least 30 received records (about 300 real occurrences at 10%).
  • Mixed rates skew the ranking. A host tapped at 100% outranks a busier host tapped at 1%. Filter to one source, or to sources that share a rate. A rate change during the selected time range also makes the trend jump.
  • No volume or savings estimates. To size a pattern's real volume, search for it in your observability platform.

3. End-to-End Processing Architecture

The following diagram illustrates how tapped data flows from edge collectors through the CollectorCtrl server, transient hot store, background digest engine, and decoupled forwarder workers:

End-to-End Processing Architecture

Data plane flow: edge mirroring, memory buffering, transient hot store, and 1-minute pattern rollups

Data Plane Flow

1. Edge Collectors (1,000s of Managed Nodes)

Host Edge · Windows Server, Linux (systemd), and Kubernetes
Parallel Pipeline Tap

Targeted collectors receive dynamic, non-invasive YAML tap configurations. The collector mirrors a uniform sample of its logs and spans (e.g. 10%, every severity at the same rate) over authenticated OTLP/HTTP. Primary production APM pipelines remain completely isolated with 0ms latency impact.

✓ One Rate for Every Severity✓ Complete Sampled Traces✓ Zero Primary Socket Contention
OTLP/HTTP + X-CollectorCtrl-Tap-Token

2. CollectorCtrl Server

Ingest Gateway & In-Memory Ring Buffer
Zero-Contention Buffer

Collectors send sampled telemetry directly to the CollectorCtrl server over authenticated HTTP endpoints. The server verifies cryptographic HMAC tap tokens, validates tenant ingest limits, and pushes raw batches into a high-throughput in-memory queue.

Branch 2a: Every 2s flush → Hot StoreBranch 2b: Decoupled async queue → Forwarders
Branch 2a: Telemetry Insights & Rollups
Transient Hot Store1–7 Days Max Retention

Raw batches are flushed every 2s into SQLite or PostgreSQL tables. Kept intentionally small: raw records are stored for 1 to 7 days maximum and then automatically dropped.

Every 1 Minute Digest Job
Pattern Digest Engine (Background)1-Min Aggregation

Reads only the last 60 seconds of raw rows. Clusters logs and traces by fingerprint, counts each recurring pattern, and appends tiny summary rollups.

10:42web-prod-02 · 'GET /healthz' · 1,420 logs0% err
10:42checkout-api · NullPointerException · 24 logsERROR
Appends to Summary Tables
4. Command Center DashboardSub-5ms Query Speed

The dashboard reads ONLY summary rollups(+ 30–60s in-memory cache). Delivers instantaneous sub-second response times whether your fleet has 10 or 10,000 collectors.

Branch 2b: Decoupled Egress & Archival
Forwarder Workers (Decoupled Queue)Async Worker Pool

Asynchronous workers stream raw batches to secondary external destinations without adding any network latency or backpressure to edge collectors.

Amazon S3 / Data Lakehouse
Hive-partitioned gzip JSON Lines (.jsonl.gz) optimized for Amazon Athena and DuckDB queries.
External OTLP Sinks (AI Agents)
Direct OTLP/HTTP streaming of the tapped sample to HolmesGPT or other AI agents.
Dead Letter Queue (DLQ)
Quarantines destination timeouts or authentication errors with safe one-click replay.

Zero Long-Term Storage Overhead:Transient raw telemetry is automatically discarded after 1–7 days. Only 1-minute pattern rollups and opted-in S3 data lake archives are preserved.

Recurring Pattern Ranking

Interactive Architecture Inspector

Explore the four pipeline stages below. Click on any stage to inspect runtime specifications, and adjust the sampling rate to see how many records a pattern contributes to the sample:

Telemetry Governor Ingest, Digest & Rollup Architecture

From edge collector tap to transient hot store (1–7 days) and minute-level pattern rollups

Data Plane Flow
1. Edge Collectors
Targeted Fleets (1,000s)

Mirrors 10% of every severity to server.

OTLP/HTTP + Tap Token
2. CollectorCtrl Server
Ingest & Memory Buffer

Receives sampled telemetry, verifies HMAC token & buffers raw batches into memory.

CollectorCtrl Server
3. Hot Store & S3/OTLP
Transient Raw Store (1–7d)

Kept small: 1–7 days only. Forwards to S3 Lake / OTLP sinks.

Postgres / SQLite + Workers
4. Digest & Dashboard
1-Minute Rollup Summaries

Reads minute digests. Always sub-second fast at 10 or 10,000 nodes.

Pattern Rollup Tables
1. Edge Collectors (1,000s)X% of Every Severity
Click any pipeline stage above to inspect details

Targeted collectors receive non-invasive YAML tap configurations. The collector mirrors a uniform X% sample of its logs and spans (every severity at the same rate) over OTLP/HTTP with an HMAC token, leaving primary production pipelines untouched.

Live Background Digest Samples (ALL):
• 10:42 · host-17 · pattern #1 failed · 431 logs · 4% errors
• 10:42 · /api/checkout · 89 spans · p95 612ms · 2 errors
• 10:42 · k8s-node-4 · container.cpu.utilization · 78.4% avg
Tap Mechanism
Parallel non-invasive pipeline injection
Sampling
One rate for every severity (default 10%)
Traces
Sampled by trace ID; sampled traces stay complete
Primary Flow
100% isolated (0ms added latency)
What the tap rate means:
Tap Rate (every severity): 10%
10%Of Every Severity Sampled
~100 recordsReceived From a Pattern Seen 1,000 Times
~300Occurrences Needed to Be Suggested (30 Records)
35%Chance a Pattern Seen 10 Times Is Missed

4. Safety & Resilience Guarantees

The Telemetry Governor provides four fundamental engineering safeguards:

1. Zero Impact on Primary Pipelines

Primary collector pipelines maintain their own HTTP/gRPC client pools, worker threads, and timeouts. Any network degradation or outage on the Governor ingest endpoint will never block or stall primary APM exports.

2. Asynchronous In-Memory Ring Buffers

The CollectorCtrl backend receives tap payloads into non-blocking memory channels (enqueueTelemetryForward). Edge agents push batches asynchronously, preventing host-level buffer bloat.

3. Fail-Open Dead Letter Storage

If an external S3 bucket or third-party OTLP destination slows down or becomes unreachable, the Governor automatically diverts failed forward jobs into local dead-letter storage (telemetry_dead_letters) rather than creating backpressure upstream.

4. Clean Edge Rollback

When a tap is disabled, CollectorCtrl executes StripTapConfigWithTemplate. All injected tap processors, exporters, and pipelines are cleanly unlinked, returning the collector configuration to its pristine baseline state.


5. Three-Signal Support Matrix

The Telemetry Governor provides native parity across all three OpenTelemetry data models:

SignalFiltering StrategySampling StrategyOTel Collector Compatibility
LogsRoutes error logs (severity >= 13) and non-errors through separate pipelines.Every severity sampled at the same tap rate via probabilistic_sampler.Native OTel filter & probabilistic_sampler.
TracesRoutes error spans (status.code == 2) and OK spans through separate pipelines.Every span sampled at the same tap rate by trace ID, so a sampled trace keeps all its spans.Native OTel filter & probabilistic_sampler.
MetricsProcesses all aggregated gauges, sums, and histograms.Not sampled via probabilistic_sampler (prevents boot failure).Native OTel metricstransform, attributes, filter.
Why Metrics are Processed Without probabilistic_sampler

In the OpenTelemetry specification, metrics represent pre-aggregated statistical data points (counters, gauges, cumulative histograms). Applying random probabilistic sampling to metrics corrupts mathematical calculations and causes the OpenTelemetry Collector binary to fail configuration validation and refuse to boot.

The Telemetry Governor automatically routes metrics through a dedicated metrics/telemetry_governor pipeline without probabilistic sampling, ensuring configuration validity and metric accuracy.