For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
Jaeger
Verified : Code examples on this page have been automatically tested and verified.Configure agentgateway to send traces to Jaeger.
Jaeger is an open-source distributed tracing platform. The following steps show you how to install Jaeger in your cluster and configure agentgateway to send traces to it.
Before you begin
- Set up an agentgateway proxy.
- Install the httpbin sample app.
Install Jaeger
Add the Jaeger Helm repository and install Jaeger.
helm repo add jaegertracing https://jaegertracing.github.io/helm-charts helm repo update helm install jaeger jaegertracing/jaeger \ --namespace tracing \ --create-namespace \ --set allInOne.enabled=true \ --set provisionDataStore.cassandra=false \ --set storage.type=memoryVerify that the Jaeger pod is running.
kubectl get pods -n tracingExample output:
NAME READY STATUS RESTARTS AGE jaeger-7f6697849c-8q8vw 1/1 Running 0 50s
Configure tracing
Create an AgentgatewayPolicy that points the agentgateway proxy at the Jaeger collector.
kubectl apply -f- <<EOF
apiVersion: agentgateway.dev/v1alpha1
kind: AgentgatewayPolicy
metadata:
name: tracing
namespace: agentgateway-system
spec:
targetRefs:
- kind: Gateway
name: agentgateway-proxy
group: gateway.networking.k8s.io
frontend:
tracing:
backendRef:
name: jaeger
namespace: tracing
port: 4317
protocol: GRPC
randomSampling: "true"
EOFVerify traces
Port-forward the Jaeger UI.
kubectl port-forward -n tracing svc/jaeger 16686:16686Send a request to the httpbin app.
curl -vi -X POST http://$INGRESS_GW_ADDRESS:80/post \ -H "host: www.example.com"Open the Jaeger UI at http://localhost:16686 and select
agentgatewayas the service. You should see a span for the request you sent.
Cleanup
You can remove the resources that you created in this guide.Delete the AgentgatewayPolicy resource.
kubectl delete AgentgatewayPolicy tracing -n agentgateway-systemUninstall Jaeger.
helm uninstall jaeger -n tracing kubectl delete namespace tracing