Introduction
With Kubernetes 2.0 Agent, the Tracing Proxy is automatically installed when tracing is enabled for the cluster. This ensures seamless trace ingestion and management within the Kubernetes environment.
This document ensures a seamless setup process for users to enable trace ingestion with Kubernetes 2.0 agents.
Prerequisites
- Ensure that the Client-level Trace Management feature is enabled. For more details, refer to Enable Traces document.
- While installing the Kubernetes 2.0 Agent, enable the Enable Traces option and provide the required replica count.
For more details, refer to the Installation document.
If tracing is enabled, Helm automatically installs tracing-proxy pods with the specified replica count.
OpsRamp Agents in Kubernetes
OpsRamp deploys two types of agents within the Kubernetes environment:
- Master Agent: Runs as a Deployment (single replica).
- Worker Agent Pod: Runs as a DaemonSet (one per node).
Both agents support trace ingestion, and users can choose the appropriate method based on their instrumentation setup.
Choosing the Right Trace Pipeline
- Master Agent Trace Pipeline: Recommended when traces need to be exported through a centralized Kubernetes service.
- Worker Agent Trace Pipeline: Recommended when the instrumentation solution exports traces on a per-node basis.
Trace Ingestion Configuration
Configure Trace Ingestion via Master Agent
To enable trace ingestion through the Master Agent, follow these steps:
- Instrument the application to send traces over gRPC or HTTP.
- Configure the following endpoints for trace ingestion:
- gRPC Endpoint:
opsramp-master-agent.opsramp-agent.svc.cluster.local:9081
- HTTP Endpoint:
opsramp-master-agent.opsramp-agent.svc.cluster.local:9082
- gRPC Endpoint:
If you want to modify the listen ports of the trace proxy, update the respective endpoint using the following Helm command:
--helm upgrade <release-name> <chart-name> --reuse-values --set traces.grpcPort=<port> --set traces.httpPort=<port>
Note
Trace-proxy can only ingest trace payloads in OTLP format.Configure Trace Ingestion via Worker Agent
To enable trace ingestion through the Worker Agent, follow these steps:
- Instrument the application to send traces over gRPC or HTTP.
- Configure the following endpoints for trace ingestion:
- gRPC Endpoint:
<Node_IP_OF_POD>:9081
- HTTP Endpoint:
<Node_IP_OF_POD>:9082
- gRPC Endpoint:
For detailed information on trace collection, refer to the Trace Collection document.