Skip to content
Latest (currently 2026.10.2) has the newest features, bug fixes, and CVE patches of Solo Enterprise for agentgateway.

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

OTel Collector

Page as Markdown

Configure agentgateway to send traces to a standalone OpenTelemetry Collector.

Important

You can send traces to a different backend, such as Datadog, Jaeger, Grafana Cloud, and others. However, if you do not use the built-in enterprise-agentgateway-ui-telemetry-collector OTel collector that the Solo Enterprise for agentgateway Helm chart creates, traces are not stored in ClickHouse and will not appear in the management UI Tracing page.

An OpenTelemetry Collector is a vendor-neutral component that receives, processes, and exports telemetry data to one or more backends, such as Jaeger, Tempo, or Datadog. The following steps show you how to install a standalone OTel Collector in your cluster and configure agentgateway to send traces to it.

Tip

If you already have the OTel stack installed, an OTel Collector is already running in the telemetry namespace. You do not need to install another one.

Before you begin

  1. Set up an agentgateway proxy.
  2. Install the httpbin sample app.

Install the OTel Collector

  1. Add the OpenTelemetry Helm repository and install the collector.

    helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
    helm repo update
    helm install opentelemetry-collector open-telemetry/opentelemetry-collector \
      --namespace tracing \
      --create-namespace \
      --set mode=deployment \
      --set image.repository=otel/opentelemetry-collector-contrib \
      --set config.exporters.debug.verbosity=detailed
  2. Verify the collector pod is running.

    kubectl get pods -n tracing

    Example output:

    NAME                                          READY   STATUS    RESTARTS   AGE
    opentelemetry-collector-6b9d7c5d65-q2r9k     1/1     Running   0          34s
    

Configure tracing

Create an EnterpriseAgentgatewayPolicy that points the agentgateway proxy at the collector.

kubectl apply -f- <<EOF
apiVersion: enterpriseagentgateway.solo.io/v1alpha1
kind: EnterpriseAgentgatewayPolicy
metadata:
  name: tracing
  namespace: agentgateway-system
spec:
  targetRefs:
    - kind: Gateway
      name: agentgateway-proxy
      group: gateway.networking.k8s.io
  frontend:
    tracing:
      backendRef:
        name: opentelemetry-collector
        namespace: tracing
        port: 4317
      protocol: GRPC
      randomSampling: "true"
EOF

Verify traces

  1. Send a request to the httpbin app.

    curl -vi -X POST http://$INGRESS_GW_ADDRESS:80/post \
     -H "host: www.example.com"
    curl -vi -X POST localhost:8080/post \
     -H "host: www.example.com"
  2. Check the collector logs for the trace.

    kubectl logs -n tracing deploy/opentelemetry-collector | grep -A 5 "agentgateway"

Cleanup

You can remove the resources that you created in this guide.
  1. Delete the EnterpriseAgentgatewayPolicy resource.

    kubectl delete EnterpriseAgentgatewayPolicy tracing -n agentgateway-system
  2. Uninstall the OTel Collector.

    helm uninstall opentelemetry-collector -n tracing
    kubectl delete namespace tracing