Sending from Kubernetes Pods
Intro and requirements
OTLP signals generated from Kubernetes pods can be ingested directly by our DaemonSet Sensor.
The recommend method is is by exporting the telemetry data from the pods to the groundcover-sensor Service Endpoint as described below.
Configuring the Exporter
Setting Up The Required Environment Variables
Apply the environment variables below to your services in order to make them ship data to groundcover's ingestion endpoint.
OTLP/HTTP
env:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://groundcover-sensor.groundcover.svc.cluster.local:4318"
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: "http/protobuf"OTLP/gRPC
Attribute Enrichment
Automatic Enrichment
groundcover will automatically enrich data ingested by the sensors with extra Kubernetes metadata, in order to provide as much context as possible.
Top Level attributes:
You can enrich your data with top-level attributes such as workload name, environment type, and environment name. These can be passed either through resource attributes or HTTP headers.
Pod Level attributes:
k8s.namespace.name- the namespace of the podk8s.node.name- the node the pod is scheduled onk8s.pod.name- the name of the podk8s.pod.uid- the UID of the podk8s.pod.ip- the IP address of the pod at the time of the tracek8s.cluster.name- the Kubernetes cluster name
Container level attributes:
container.name- the name of the containercontainer.image.name- the name of the container imagecontainer.image.tag- the tag of the container image
Manual Enrichment via Headers
It is also possible to enrich specific attributes using headers - read more here.
See below for an example on adding workload and env via headers:
Sampling
While some instrumentation libraries allow sampling of traces, it can be convenient to sample a ratio of the incoming traces directly in groundcover.
The samplingRatio field is a fraction in the range 0-1. For example, 0.1 means 10% of the incoming traces will be sampled and stored in groundcover.
To configure sampling, the relevant values can be used:
Configuring 100% Sampling Ratio (No Sampling)
Use the values below to disable sampling and ingest 100% of the incoming traces.
Troubleshooting
Common Issues
Connection Refused / Timeout
Verify the sensor endpoint URL
Check application logs for OTLP exporter errors
Data Not Appearing
Check application logs for OTLP exporter errors
Verify the service name and resource attributes are set
Allow 1-2 minutes for data to appear in groundcover UI
For low-volume environments like development clusters, increase sampling ratio to 1 or increase the volume of requests sent to the service
Last updated
