OpenTelemetry
KubeSense is a self-hosted OpenTelemetry backend. Send OTLP traces, metrics and logs from your existing SDKs, agents and Collectors, with no proprietary agent and no re-instrumentation.
KubeSense is an OpenTelemetry-native observability backend that runs entirely in your own environment. Applications instrumented with OpenTelemetry SDKs, the OpenTelemetry Operator or an OpenTelemetry Collector send traces, metrics and logs to KubeSense with standard OTLP exporters. You don't need a proprietary agent or a KubeSense-specific SDK.
If your services already emit OpenTelemetry data, change the exporter endpoint and your existing instrumentation keeps working. Your instrumentation stays vendor-neutral, so you can switch backends later without rewriting it.
What KubeSense accepts
All three signals are accepted over OTLP/HTTP with protobuf encoding (http/protobuf), the default for most OpenTelemetry SDKs and the Collector's otlphttp exporter.
| Signal | KubeSense endpoint | Receiving component | Enable with |
|---|---|---|---|
| Traces | http://<host>:33443/v1/traces | Kubecol | kubecol.external_agent_traces.enabled: true |
| Metrics | http://<host>:30060/opentelemetry/v1/metrics | Metrics Scraper | metrics-scraper.service.enabled: true |
| Logs | http://<host>:30055/v1/logs (OTLP/gRPC is also accepted on 30056) | Log Aggregator | aggregator.sources.otel.enabled: true |
Inside the KubeSense cluster, use the service names:
| Signal | In-cluster endpoint |
|---|---|
| Traces | http://kubesense-kubecol.kubesense.svc.cluster.local:33443 |
| Metrics | http://kubesense-metrics-scraper.kubesense.svc.cluster.local:30060/opentelemetry/v1/metrics |
From outside the cluster, <host> is the internal load balancer that exposes KubeSense ingestion to your network. See Networking and External Service Logs & Metrics.
Use OTLP/HTTP with protobuf for traces and metrics: Set OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf. gRPC exporters and OTLP/JSON are not accepted on the trace and metrics endpoints. If your applications already export over gRPC, send them to an OpenTelemetry Collector, which receives gRPC and forwards to KubeSense over HTTP.
Guides in this section
| Guide | What it covers |
|---|---|
| OpenTelemetry Collector | Point a new or existing Collector at KubeSense for all three signals, on Kubernetes or a VM, and send to KubeSense and another backend at the same time |
| Metrics | Send OpenTelemetry metrics from SDKs or a Collector, how they are stored and named, and how to query them |
| Logs | Send OpenTelemetry logs, required attributes, and how to avoid duplicates with the KubeSense log sensor |
| Instrumentation | Instrument applications for traces: Operator, zero-code agents and SDKs, per language |
Required resource attributes
Set these on every service, either with OTEL_RESOURCE_ATTRIBUTES in the application or with a resource processor in the Collector:
| Attribute | Value | Purpose |
|---|---|---|
service.name | Your service name (OTEL_SERVICE_NAME) | Service name in APM, logs and service map |
kubesense.cluster | The cluster or environment name shown in KubeSense | Groups the data under the right cluster |
kubesense.env_type | k8s for Kubernetes workloads, legacy for VMs | Correlates telemetry with the matching infrastructure |
OTEL_SERVICE_NAME=checkout-api
OTEL_RESOURCE_ATTRIBUTES=kubesense.cluster=prod-eks,kubesense.env_type=k8s,deployment.environment.name=prodWhen applications on Kubernetes send traces through the KubeSense sensor, KubeSense adds Kubernetes metadata to the spans automatically. See OpenTelemetry (OTLP).
Quick start: send from an application
Configure the OpenTelemetry SDK or zero-code agent with environment variables. Each signal has its own endpoint, so set them per signal:
OTEL_SERVICE_NAME=checkout-api
OTEL_RESOURCE_ATTRIBUTES=kubesense.cluster=prod-eks,kubesense.env_type=k8s
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_TRACES_EXPORTER=otlp
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://kubesense-kubecol.kubesense.svc.cluster.local:33443/v1/traces
OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://kubesense-metrics-scraper.kubesense.svc.cluster.local:30060/opentelemetry/v1/metrics
# On Kubernetes the KubeSense log sensor already collects stdout and stderr
OTEL_LOGS_EXPORTER=noneThe per-signal variables (OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT) take the full URL including the path. Don't use the shared OTEL_EXPORTER_OTLP_ENDPOINT here: traces and metrics are received on different ports.
For more than a handful of services, run an OpenTelemetry Collector and point applications at it instead. It batches, retries and adds Kubernetes metadata in one place.
Instrument your applications
KubeSense works with the official OpenTelemetry agents and SDKs. Most languages support zero-code instrumentation.
| Where the application runs | Start here |
|---|---|
| Kubernetes | OpenTelemetry Operator: inject instrumentation with one pod annotation |
| VMs (Linux or Windows) | The language agent, configured with environment variables, sending directly to KubeSense or through a local Collector |
| Full control in code | The OpenTelemetry SDK for your language, with manual setup |
Language guides: Java · Node.js and NestJS · Python · .NET · Go · Ruby · Next.js. Any other language with an OpenTelemetry SDK and an OTLP/HTTP exporter works the same way.
OpenTelemetry across the platform
KubeSense uses OpenTelemetry well beyond application traces:
| Use case | Guide |
|---|---|
| Linux and Windows host metrics | Host Monitoring |
| Amazon ECS traces and metrics (Fargate and EC2) | ECS |
| Traces and logs by platform: Kubernetes, VMs and EC2 hosts, ECS | OpenTelemetry (OTLP) |
| Logs and metrics from services outside the cluster | External Service Logs & Metrics |
| GCP managed services (Cloud SQL, Memorystore, Cloud Run) | Managed Service Metrics |
| AWS Lambda logs | AWS Lambda Logs |
| LLM and GenAI applications | LLM Observability |
Already on Datadog or New Relic agents?
KubeSense's trace endpoint (port 33443) also accepts traces from Datadog APM and New Relic APM agents. You can move to KubeSense without re-instrumenting first, then switch services to OpenTelemetry one at a time. See Datadog, Migrating from Datadog and Migrating Datadog Alerts.
Also included: eBPF for services you haven't instrumented
OpenTelemetry gives you application-level detail: custom spans, business attributes, custom metrics and context propagation. Instrumenting every service takes time, though, and some workloads (third-party images, legacy services, databases) may never be instrumented.
KubeSense also ships an eBPF sensor that covers those gaps with zero code changes. It observes service-to-service traffic at the kernel level across 25+ protocols (HTTP, gRPC, PostgreSQL, MySQL, Redis, Kafka, DNS and more) in any language. Use it on its own for instant coverage, or alongside OpenTelemetry: KubeSense shows OpenTelemetry spans and eBPF-captured requests together in the same service map and trace views.
You don't need eBPF to use KubeSense as your OpenTelemetry backend, and you don't need OpenTelemetry to get value from eBPF. Use either one, or both.