Tracing a request across multiple Kubernetes clusters becomes difficult when the services involved don’t preserve the same trace context. A request that starts in Cluster A and reaches Cluster B may appear as two unrelated traces, leaving you unable to identify where latency was introduced. Even when the spans belong to the same trace, inconsistent sampling can leave gaps in the request’s execution path, while missing cluster metadata makes it difficult to identify where individual operations ran.
This guide explains how to implement multi-cluster distributed tracing with OpenTelemetry, including trace context propagation, Collector configuration, and sampling across clusters. You’ll also learn how to verify trace continuity, investigate cross-cluster latency, and use groundcover’s correlated telemetry to troubleshoot requests.
How Multi-Cluster Distributed Tracing Works
To trace a request across Kubernetes clusters, the tracing backend needs to connect the operations recorded by services in each cluster. OpenTelemetry represents these operations as spans that share a trace ID. Each span has its own ID, and child spans reference their parent’s span ID, allowing the backend to reconstruct the request’s execution path.
When a request leaves Cluster A, the calling service passes its trace context through the W3C traceparent header. The receiving service in Cluster B extracts that context and creates a span under the same trace ID. Ingress controllers, API gateways, and service meshes must preserve the relevant headers for the trace to remain connected.
Trace context travels with application requests, while recorded spans travel separately over OTLP to OpenTelemetry Collectors. Collectors enrich spans with Kubernetes metadata such as k8s.cluster.name before forwarding them to a tracing backend, directly or through additional gateways. If tail sampling is used, spans belonging to the same trace must reach the same sampling instance so it can make a decision using the collected spans. The backend then stores the retained spans for searching and visualization.
Choosing a Multi-Cluster Tracing Architecture
Multi-cluster tracing can use a central collection endpoint or gateways deployed within each cluster. Choosing between these approaches depends on network connectivity, failure recovery requirements, and operational costs.
Centralized vs. Per-Cluster Collection
With direct centralized collection, applications or node-level Collectors export spans to a central endpoint. Per-cluster collection adds a gateway pool in each cluster to handle forwarding, buffering, and network access before sending spans to a shared processing tier. The table compares the trade-offs.
Direct centralized collection works well for smaller deployments with reliable connectivity to a shared backend. Per-cluster gateways are useful when clusters span regions, require controlled network egress, or need local buffering during outages. Neither approach requires a separate backend for every cluster. Gateways can route spans by trace ID to a shared tail-sampling tier so that spans from the same trace reach the same sampling instance. If data residency requires separate regional backends, reconstructing cross-region traces depends on whether those backends support querying or aggregating traces across regions.
Network Egress and Storage Costs
Multi-cluster tracing costs depend partly on how much telemetry crosses billed network boundaries and how much is retained. Use the following formulas to estimate transfer and storage costs. For transfer, use the span rate crossing the billed connection after any upstream sampling. For storage, use the incoming rate before the retention sampling decision and the fraction of spans retained.
Use the provider’s AWS data transfer pricing, Google Cloud network pricing, or Azure bandwidth pricing to determine the charges for your actual network path. Cross-zone and cross-region transfer rates vary by provider, service, and destination. NAT gateways and load balancers may add processing charges, so include those in the transfer-cost calculation where applicable. Keep GB and GiB consistent when applying the formulas.
- Compression and batching: Both reduce transferred bytes. Batched requests generally compress more efficiently than individual spans, helping lower cross-region transfer costs.
- Sampling placement: Consistent head sampling at the SDK drops spans before they leave the pod, so unsampled data never incurs transfer or Collector compute. Global tail sampling needs every span to reach the shared tier before deciding, so you pay to move 100% of spans across regions and then store a fraction.
- Storage and billing: Storage cost depends on retained volume, backend indexing, and replication factor. Billed volume can also differ from wire volume: some vendors meter uncompressed, enriched data.
Instrumenting Services With OpenTelemetry
Before collecting traces across clusters, you need to decide how services will generate spans and propagate trace context. Manual SDK instrumentation, runtime auto-instrumentation, and eBPF-based collection offer different levels of visibility and support for context propagation.
Manual SDK instrumentation fits services where you need business attributes (tenant, order ID, plan tier) or where a framework has no auto-instrumentation. OpenTelemetry’s propagator API handles extraction and injection once configured, and instrumentation libraries for HTTP servers and clients call it on every remote call.
Operator auto-instrumentation lets you instrument supported runtimes, including Java, .NET, Node.js, Python, and Go, without changing application code. The OpenTelemetry Operator uses an Instrumentation resource to configure exporters and propagators for injected workloads:
This endpoint requires the agent’s OTLP/HTTP receiver to be reachable on the node IP through port 4318, such as by exposing that port through hostPort.
Opt workloads in with an annotation on the namespace or the pod template:
The Operator adds auto-instrumentation when annotated pods are created. Make sure the Instrumentation resource exists before deploying those workloads; otherwise, injection can fail. Existing pods must be restarted to receive instrumentation.
Python auto-instrumentation uses OTLP/HTTP by default, so the example targets port 4318. Go auto-instrumentation requires privileged execution, a target executable, and the Operator’s enable-go-instrumentation flag, which is disabled by default. Check runtime-specific requirements before enabling injection across a mixed-language fleet.
eBPF instrumentation can capture supported protocol activity from services without requiring SDKs or application code changes. OpenTelemetry eBPF Instrumentation (OBI) supports protocols such as HTTP, gRPC, and database traffic, making it useful for legacy services and mixed-language environments.
However, OBI’s context propagation is disabled by default. You must enable it explicitly, and its behavior depends on the protocol, runtime, and network path. Plaintext HTTP and gRPC support header-based propagation, but TLS encryption and intermediate proxies can prevent context propagation. Test these paths before relying on eBPF-generated spans to form complete cross-cluster traces.
These approaches can be combined. eBPF provides visibility into supported traffic, runtime instrumentation adds framework-level spans, and manual SDK instrumentation supplies custom attributes and application-specific context.
Propagating Trace Context Across Cluster Boundaries
For a trace to remain connected across clusters, each service must extract trace context from incoming requests and inject it into outgoing requests. When Cluster A calls Cluster B, the receiving service uses that context to create a span with the same trace ID and a parent reference to the calling span.
The OTEL_PROPAGATORS environment variable controls which trace context formats a service reads and writes. OpenTelemetry defaults to tracecontext,baggage. If some services use legacy B3 propagation, configure compatible propagators on the services that communicate across those boundaries:
B3 compatibility matters when clusters run Zipkin-instrumented services or older service-mesh configurations. The b3multi propagator handles B3’s separate trace ID, span ID, and sampling headers. Verify that each service supports the configured formats so requests crossing between W3C and B3 instrumentation preserve their trace context.
A correct Cluster A → Cluster B call looks like this:
The parent ID changes at every hop. The trace ID never does.
gRPC carries traceparent in request metadata, so the same context extraction and injection requirements apply to cross-cluster gRPC calls.
Asynchronous messaging also requires context propagation. Kafka producers can inject traceparent into message headers, which consumers extract when processing messages. Depending on the instrumentation, consumer spans may use the producer’s context as their parent or reference it through a span link. Linked spans can belong to separate traces, so they may not appear together in one trace view. The OpenTelemetry messaging conventions describe these relationships. Test how your tracing backend displays cross-cluster messaging operations.
Each layer on the path, including cloud load balancers, ingress controllers, API gateways, and egress proxies, must pass traceparent, tracestate, and any B3 headers unchanged or participate as a tracer.
Service Mesh Integration With Istio
Istio can generate tracing spans from Envoy proxies without adding tracing code to the applications themselves. In sidecar mode, the source and destination proxies can each generate a span for a traced request. In ambient mode, waypoint proxies provide HTTP tracing for traffic routed through them; ztunnel alone cannot generate these spans because it operates at Layer 4. Applications still need to propagate trace context between incoming and outgoing calls to connect spans across services (see Istio’s distributed tracing FAQ).
Configure the OpenTelemetry tracing provider in Istio’s MeshConfig. Save the following installation configuration as tracing.yaml and apply it with istioctl install -f tracing.yaml. The IstioOperator format shown here is used by istioctl; it is not a Kubernetes resource to apply using kubectl.
The Telemetry API (telemetry.istio.io/v1, promoted in Istio 1.22) selects the provider, sampling rate, and custom tags. Apply this Telemetry resource separately with kubectl apply -f telemetry.yaml:
The cluster_id tag reads ISTIO_META_CLUSTER_ID from the proxy environment. Configure this value for each cluster’s proxies and verify that it appears correctly in exported spans. For sidecars, environment-based custom tags require the appropriate Istio sidecar injection configuration. If the variable is missing, the fallback value Kubernetes will not distinguish clusters. This tag is separate from the k8s.cluster.name resource attribute added by the OpenTelemetry Collector.
Three behaviors matter across clusters:
- Sampling: The default sampling rate is 1%. Precedence runs Telemetry API, then pod annotation, then MeshConfig.
- Tags:
customTagsat a lower level fully replaces parent tags instead of merging, so a namespace-level Telemetry resource that adds one tag drops the mesh-widecluster_id. - Mixed formats: Istio 1.28 added
trace_context_option: USE_B3_WITH_W3C_PROPAGATIONfor Zipkin providers, which extracts B3 first, falls back totraceparent, and injects both, useful when clusters run mixed formats.
Configuring OpenTelemetry Collectors Across Clusters
To implement multi-cluster distributed tracing, instrument services in each cluster and configure trace context propagation to preserve trace IDs across requests. Deploy local OpenTelemetry Collectors to enrich spans with Kubernetes metadata, forward them through per-cluster gateways, and route them by trace ID to a shared tail-sampling tier. Export retained traces to a central backend, then verify that requests crossing clusters produce connected spans with the correct parent relationships.
Per-cluster gateways provide local buffering and controlled network egress, although smaller deployments can export directly to a shared endpoint. Node agents run as DaemonSets to collect and enrich telemetry, while gateway Deployments handle forwarding and retries. The shared tier keeps spans with the same trace ID together for tail sampling.
A node agent receives OTLP from local pods, limits memory, enriches, and forwards to its cluster gateway:
Both prod-us-east-1 (the k8s.cluster.name value) and us-east-1 (the cloud.region value) are example values. Change them to match each cluster’s actual deployment. The env detector in resource_detection only reads OTEL_RESOURCE_ATTRIBUTES, so it does not discover the cloud region on its own. Unless that variable carries region data, the explicit resource processor values set cloud.region and k8s.cluster.name.
The configuration uses components from the Collector Contrib distribution. K8S_NODE_NAME must be injected into the agent pod through the Kubernetes Downward API, and the agent’s ServiceAccount needs RBAC to read Kubernetes metadata. The exporter endpoint needs the TLS configuration appropriate for your gateway, and the example is a Collector configuration, not a complete Kubernetes deployment manifest.
Place memory_limiter first in the processor pipeline so it can apply backpressure before other processors allocate memory. Configure GOMEMLIMIT alongside it to help control Go heap usage. The processor uses a hard memory limit and a lower soft limit, allowing it to reject incoming data when memory pressure increases.
The example enables batching through sending_queue.batch on the OTLP exporter. You can adjust the flush interval and batch size to control request volume and avoid oversized payloads. The standalone batch processor remains supported, although the Collector’s batching migration RFC recommends exporter-level batching for many use cases.
Queues and retries go on the network hops: agent to gateway, gateway to shared tier, shared tier to backend. Exporter defaults:
- sending_queue: Enabled, 10 consumers,
queue_size1000,block_on_overflow: false, so a full queue rejects data immediately. - retry_on_failure: Enabled,
initial_interval5s,max_interval30s,max_elapsed_time300s. - Persistence: Setting
sending_queue.storageto a storage extension replaces the in-memory queue with a disk-backed one, which survives gateway restarts.
Gateways may need larger queues and longer retry windows than node agents to handle cross-region interruptions. Monitor otelcol_exporter_queue_size against otelcol_exporter_queue_capacity, and consider scaling when queues consistently reach 60–70% of capacity. An increase in otelcol_exporter_send_failed_spans indicates permanent export failures, which may result from backend availability, network issues, or authentication errors. Investigate these failures before adding replicas (see the scaling guide).
DaemonSet agents scale with the number of nodes, while per-cluster gateway Deployments can scale by adding replicas behind a Kubernetes Service. The shared tail-sampling tier needs trace-ID-aware routing rather than a generic load balancer. Otherwise, different instances may receive separate portions of the same trace and make decisions using incomplete data.
Enriching Spans With Cluster and Kubernetes Metadata
Each span needs enough metadata to identify the service, workload, and cluster where it originated. The k8s_attributes processor adds Kubernetes metadata such as namespace, deployment, pod, and node to telemetry. Apply enrichment at node-level Collectors before forwarding spans to gateways, where the original pod’s connection IP may no longer be available.
Configure enrichment with these considerations:
- Limit metadata collection: Use
node_from_env_varto restrict each DaemonSet agent’s pod metadata cache to its own node. This reduces memory usage as the cluster grows. - Preserve pod association: By default,
k8s_attributesmatches the incoming connection IP to a pod. When enriching behind a gateway, use resource attributes such ask8s.pod.uidork8s.pod.ipinstead. You can inject the pod UID through the Kubernetes Downward API. - Configure RBAC: Give the Collector’s ServiceAccount
get,list, andwatchpermissions for the Kubernetes resources it needs, typically pods and namespaces. Additional permissions may be required for ReplicaSets or nodes. Check Collector logs if expected attributes are missing. - Set cluster identity: Cloud resource detectors can populate
k8s.cluster.nameandcloud.region, but their behavior varies by provider. Use theresourceprocessor to assign an explicit cluster name and region where needed, rather than relying entirely on automatic detection.
Verify that exported spans contain the expected cluster, namespace, workload, and service.name attributes. Set service.name through the application SDK or Instrumentation resource, and avoid using pod names or UIDs as labels in span-derived metrics because they increase cardinality.
Choosing a Trace Backend
OpenTelemetry Collectors can export traces to Jaeger, Grafana Tempo, or Zipkin, although the required export protocol and storage configuration differ.
Jaeger fits teams already using Elasticsearch, OpenSearch, or Cassandra for trace storage. Tempo uses object storage and supports structural TraceQL queries, although its distributed 3.x architecture also requires a Kafka-compatible system. For example, { span.http.url = "/path/of/api" } >> { span.db.name = "db-shard-001" } finds traces containing a matching API span with a descendant database span. Zipkin remains an option for smaller deployments and B3-heavy legacy environments.
For a shared-tier Collector that already defines the otlp receiver, memory_limiter processor, and tail_sampling processor, the following configuration fragment exports sampled traces to Tempo. It assumes the Tempo distributor exposes an OTLP/gRPC endpoint with TLS enabled and that the configured CA certificate trusts its server certificate:
Backend selection and Collector topology are separate decisions. You can retain the same agents, gateways, and sampling architecture when switching between Tempo and Jaeger, although exporter protocols, authentication, TLS, and backend storage settings may need adjustment. groundcover uses a different storage architecture: with BYOC (Bring Your Own Cloud), it stores trace data in ClickHouse within the customer’s environment.
Choosing a Cross-Cluster Sampling Strategy
Cross-cluster traces survive sampling only when one decision applies to the whole trace. Two approaches achieve that, with different trade-offs:
Head sampling works across clusters because the decision rides in the sampled bit of traceparent. Every downstream service that respects the parent’s flag keeps or drops its spans in agreement. A ratio sampler configured differently in Cluster B breaks that agreement unless it honors the parent decision.
Independent tail sampling at each cluster gateway fragments traces. Gateway A sees the slow checkout span and keeps it; gateway B sees a fast payments span from the same trace and drops it. Each made a correct decision on the data it had. The fix is to route by trace ID before sampling.
Each cluster gateway runs the load_balancing exporter, which consistently hashes the trace ID to pick a downstream sampler:
The shared tier runs tail_sampling with error, latency, and probabilistic policies:
Every gateway must resolve the same list of sampler instances for trace-ID routing to remain consistent. The DNS hostname must return individual sampler endpoints, such as those exposed by a headless Kubernetes Service, rather than a single load-balanced address. DNS updates can temporarily leave gateways with different endpoint lists, so monitor routing during sampler scaling and deployment changes.
The k8s resolver discovers sampler endpoints through the Kubernetes API of the cluster it connects to. For a shared sampling tier accessible from multiple clusters, DNS is often simpler, provided it resolves to the individual sampler endpoints. Static endpoint lists are another option, but they require manual updates when sampler instances change.
Adding or removing sampler instances changes how some trace IDs map to endpoints, potentially splitting traces already in progress. The groupbytrace processor can reduce this risk by forwarding locally buffered spans from the same trace together, but it cannot prevent different gateways from using inconsistent sampler lists.
Each tier has a sampling job:
- Application: Consistent head sampling only, if any, and always honor the parent decision.
- Agent: No sampling. Enrich and forward.
- Per-cluster gateway: No trace-level sampling. Route by trace ID. Drop only whole categories you never want (health checks) with filters that apply identically in every cluster.
- Shared tier: Tail sampling.
By default, decision_wait gives the processor 30 seconds to collect spans before evaluating a trace. A short window can miss spans from slow cross-region requests, while a longer window increases memory usage. Size num_traces according to the incoming trace rate and monitor otelcol_processor_tail_sampling_sampling_trace_dropped_too_early for traces evicted before evaluation.
Decision caches help preserve earlier sampling decisions when additional spans arrive after the trace leaves the in-memory buffer, until those cached decisions expire or are evicted.
Tail-sampled traces cannot independently provide an unbiased P99 latency measurement because the retained traces are deliberately weighted toward errors and slow requests. Calculate P99 from request-duration histograms collected through an unsampled application metrics pipeline, then use retained slow traces to investigate the operations contributing to that latency.
Securing Cross-Cluster Trace Export
OTLP spans can contain URLs, SQL statements, user identifiers, and other sensitive attributes. Secure trace context propagation and telemetry export separately: traceparent and tracestate travel with application requests, which should use TLS across untrusted connections, while OTLP export uses its own Collector-to-Collector connection. Configure TLS or mutual TLS on that connection independently of application traffic.
Configure both sides of the OTLP connection for mutual TLS. The gateway presents a client certificate, while the shared-tier receiver verifies it against a trusted CA. The two fragments below belong to two different Collector deployments, not one combined configuration.
Gateway Collector exporter:
Shared-tier Collector receiver:
On the receiving side, client_ca_file makes the server require and verify client certificates, which turns TLS into mTLS. min_version defaults to "1.2"; TLS 1.0 and 1.1 are deprecated. insecure_skip_verify: true keeps encryption while discarding identity, which defeats the point of a cross-cluster CA.
Token-based authentication can supplement mTLS. The bearertokenauth extension attaches bearer tokens to outgoing requests, while a receiver-side authenticator such as oidc validates incoming JWTs against its configured identity provider. Register authentication extensions under service.extensions, reference them in the appropriate exporter or receiver configuration, and store credentials securely outside the Collector configuration.
Restrict access to the shared sampling tier using Kubernetes NetworkPolicy and the network controls connecting your clusters. Standard NetworkPolicy pod and namespace selectors cannot directly identify pods in another cluster, so cross-cluster restrictions may require known source IP ranges, firewall rules, or CNI-specific identity policies. Limit gateway egress to the shared OTLP endpoint and verify the permitted traffic paths.
Data handling decisions apply before spans leave their region:
- Residency: If trace data must remain within a particular region, keep its collection, sampling, and storage within that region. Cross-region requests can still preserve their trace IDs, but reconstructing a complete trace from separate regional backends requires cross-backend querying or an aggregation approach permitted by your residency requirements.
- Sensitive attributes: Remove or hash request bodies, auth headers, and personal identifiers at the agent, before the cross-region hop.
- Access and retention: Scope backend access by tenant or cluster where the backend supports it, and set retention per signal so traces do not outlive the policy that governs them.
Verifying and Troubleshooting Cross-Cluster Traces
Validate trace continuity before diagnosing latency: broken propagation, missing metadata, and partial sampling can hide the cross-cluster path. Representative request-duration histograms and shared trace IDs connect slow requests with logs and metrics.
Run this validation sequence after every topology or propagator change:
- Generate a request in Cluster A that calls a service in Cluster B (and, for async paths, a message that a Cluster B consumer processes).
- Find the trace by its trace ID and confirm that spans from both clusters appear together. For synchronous HTTP or gRPC calls, check that the Cluster B server span references the Cluster A client span as its parent. For asynchronous messaging, inspect parent relationships or span links, depending on the instrumentation.
- Verify that spans contain the expected
k8s.cluster.name,k8s.namespace.name, andservice.nameattributes, along withcloud.regionwhere configured. Check that the values identify the correct cluster, workload, and service. - Inspect Collector metrics on agents, gateways, and samplers:
otelcol_exporter_send_failed_spans,otelcol_processor_refused_spans, exporter queue size against capacity, andotelcol_loadbalancer_backend_outcome. - Validate TLS and mTLS from each gateway to the shared tier, including certificate expiry and the client certificate the receiver sees.
- For requests retained by the sampling policy, confirm that their spans appear after the sampling and export delays. Investigate missing parent spans, unexpected gaps, or spans that arrive after the sampling decision.
Symptoms map to causes:
- Missing spans from one cluster: Check that cluster’s gateway queue and send failures first, then whether the spans were dropped by a sampler that received only part of the trace.
- Broken propagation (two traces): Check whether traceparent reaches Cluster B and contains a valid trace context. If the service still starts a new root span, inspect its propagator configuration, instrumentation, and context extraction.
- Wrong cluster attribution: A gateway running
k8s_attributesmatched a reused or proxy IP, or aresourceprocessor in a shared values file stamped one cluster’s name on another’s spans. - Incomplete sampling: Gateways disagree on the sampler list, or traces outlive
decision_wait. Compareotelcol_loadbalancer_num_backendsacross clusters and check the late-span age histogram.
Diagnosing Cross-Cluster Latency and P99 Bottlenecks
Start with request-duration histograms collected independently of trace sampling to calculate representative P99 latency by service, route, cluster, or region. Tail-sampled traces are selected according to sampling policies, so their latency distribution may not reflect overall request traffic. Use the histograms to identify regressions and retained traces to investigate their causes.
The workflow:
- Find the regression in request-duration histograms, split by
k8s.cluster.nameandcloud.region, to see whether it is regional or global. - Pull several slow traces from the regressed bucket through exemplars or a duration filter.
- Walk the critical path and mark which spans sit on a cross-cluster hop (client span in one cluster, server span in another).
- Compare the client span’s duration with the matching server span’s. A large gap points to the network or a proxy; a long server span points to the remote service.
- Correlate with network RTT and TCP retransmissions between regions, CPU throttling on the affected pods, database latency, and service logs for the same trace ID.
- Confirm the pattern repeats across many requests before acting on it.
An apparent gap between spans doesn’t necessarily indicate network latency. Missing instrumentation can leave operations unrepresented, while clock skew between hosts can make related spans appear out of order. Check time synchronization before attributing these gaps to the network.
Jaeger supports clock-skew adjustment through max_clock_skew_adjust in its v2 jaeger_query extension, with 0s disabling the adjustment. Because adjusted timestamps can conceal timing differences, inspect the original span timestamps when investigating cross-cluster latency.
Correlating Traces With Logs and Metrics
Traces, logs, and metrics can be correlated when they contain compatible identifiers and resource attributes. Instrumented logs can include trace_id and span_id, while metric exemplars can link measurements to individual traces. Consistent attributes such as service.name and k8s.cluster.name help narrow an investigation to the same service and cluster across signals.
In an open-source observability stack, the components support correlation in different ways:
- Prometheus and Thanos: Prometheus can store exemplars that associate metric measurements with trace IDs. Enable exemplar storage and configure remote write when forwarding exemplars. Thanos Receive also requires exemplar storage to be enabled before it retains them.
- OpenTelemetry: SDKs can attach trace and span context to metric exemplars. The
span_metricsconnector can generate metrics from spans and attach exemplars whenexemplars.enabledis configured. - Grafana, Loki, and Tempo: Loki derived fields can link log entries containing trace IDs to Tempo. Grafana’s Tempo data source also supports trace-to-logs and trace-to-metrics links, allowing engineers to move between related telemetry during an investigation.
Correlated signals separate the three common origins. An application problem shows a long server span, errors in that pod’s logs, and normal node metrics. A network-path problem shows a long client span, a short server span, and retransmissions on the inter-region link. A Kubernetes infrastructure problem shows CPU throttling or node pressure on the pods behind the slow spans, often alongside a rollout or rescheduling event. One gap: exemplars from span metrics can point to traces that tail sampling dropped, so an exemplar link that returns nothing can mean tail sampling dropped that trace.
Multi-Cluster Distributed Tracing With groundcover
groundcover combines automatic eBPF tracing with OpenTelemetry ingestion to provide visibility across Kubernetes clusters. Sensors collect telemetry from monitored workloads, while a centralized BYOC backend brings traces, logs, metrics, and Kubernetes events together for investigation.
Deploying Sensor Coverage Across Clusters
groundcover’s eBPF sensor runs as a Kubernetes DaemonSet, with one sensor pod per monitored node. Through eBPF auto-instrumentation, it captures supported application and network activity without requiring application code changes, providing visibility into service communication, request latency, and errors.
To connect multiple clusters:
-
Deploy the sensor in each cluster: Use the groundcover CLI, Helm, or Argo CD. The sensor requires Kubernetes 1.21+, a compatible Linux 5.3+ kernel with BTF/CO-RE support, and permission to run privileged containers. -
Configure cluster identity and ingestion: Setglobal.backend.enabled: false, pointglobal.ingress.siteto your BYOC endpoint, and assign a uniqueclusterIdand anenvvalue in each cluster’svalues.yaml. Follow the Kubernetes installation instructions to configure and deploy the sensors. -
Verify coverage: Check that sensors run on the intended nodes and that each cluster appears correctly in groundcover’s Cluster Picker. AWS Fargate and Docker Desktop aren’t supported sensor environments.
Under BYOC, monitored clusters send telemetry to a centralized backend in your cloud environment. ClickHouse stores traces, logs, and Kubernetes events, while VictoriaMetrics stores metrics. This gives engineers one place to investigate activity across clusters without maintaining a separate tracing backend in each cluster.
Combining eBPF and OpenTelemetry Traces
groundcover supports both automatically captured eBPF traces and traces generated through OpenTelemetry instrumentation. Unlike traditional APM agents that operate inside application processes, eBPF provides protocol-level visibility without application changes. SDK instrumentation complements this coverage with application-specific spans and business context.
You can combine these sources as follows:
- Automatic eBPF tracing: The sensor captures supported HTTP, gRPC, and database activity, using adaptive sampling to retain useful traces such as errors and unusual latency. Coverage depends on the protocol and runtime; encrypted Java traffic requires enabling the optional Java SSL tracing agent.
- Application instrumentation: Existing OpenTelemetry SDKs or agents injected through the OpenTelemetry Operator can capture operations that kernel instrumentation cannot observe, including custom business spans.
- OTLP ingestion: Applications can export over gRPC or HTTP to the local groundcover sensor, which enriches incoming telemetry with Kubernetes metadata. Alternatively, existing OpenTelemetry Collector pipelines can forward traces to the BYOC endpoint using a third-party ingestion key.
- Sampling: Direct OpenTelemetry ingestion through the sensor has a default 5% sampling ratio, configurable through
agent.sensor.apmIngestor.otel.direct.samplingRatio. The BYOC endpoint doesn’t independently sample incoming OpenTelemetry traces, allowing upstream Collectors to control retention.
Both trace sources are available in groundcover’s Traces interface. However, automatic collection doesn’t guarantee that every cross-cluster request becomes one connected trace. Services still need to preserve trace context, and missing or unsampled spans can leave gaps in the request path.
Investigating Cross-Cluster Issues With Agent Mode
Once clusters are connected, groundcover lets engineers investigate service dependencies, failed requests, and latency across their environments. Its Traces view provides request-level context alongside Kubernetes metadata, while shared trace identifiers help correlate Kubernetes logs and traces across services and namespaces.
You can investigate a cross-cluster issue using this workflow:
-
Identify the affected request: Open the Traces view, filter by cluster, workload, error status, or latency, and inspect the available spans to locate the slow or failing operation. -
Investigate with Agent Mode: Ask groundcover Agent Mode to compare the checkout service in Cluster A with its payments dependency in Cluster B. Use@mentionsto provide specific workload and cluster context. Agent Mode can query available traces, metrics, logs, and Kubernetes events to investigate likely causes. -
Act on the findings: Use Agent Mode to create dashboards or monitor drafts for the affected services. Through groundcover MCP, external coding agents can also query production telemetry or delegate investigations from an IDE.
Agent Mode can only analyze the telemetry available to groundcover; it cannot reconstruct missing spans or repair broken context propagation. For deployments with strict residency requirements, verify the configured LLM provider and inference region. groundcover’s observability pricing is based on monitored nodes rather than trace volume, while Agent Mode is available on eligible paid plans with separate model inference costs.
FAQs
No. Applications can export telemetry directly to a shared Collector or backend if the endpoint is reachable. However, deploying a Collector in each cluster provides local Kubernetes metadata enrichment, buffering, and a controlled egress path. For larger or geographically distributed environments, per-cluster gateways can improve resilience and simplify security management.
Check otelcol_processor_tail_sampling_sampling_late_span_age to understand how long spans arrive after sampling decisions. Increase decision_wait if cross-cluster requests regularly exceed the configured window. Monitor otelcol_processor_tail_sampling_sampling_trace_dropped_too_early for traces evicted before evaluation, and size num_traces accordingly. Configure both sampled and non-sampled decision caches to preserve decisions after trace data leaves memory.





