Jaeger is installed if you followed the standard installation instructions. Its resource objects are
defined in the base/jaeger
directory. Additionally, a Jaeger agent sidecar container is present in
the *.Deployment.yaml
and *.StatefulSet.yaml
of certain services.
If you have an existing Jaeger instance you would like to connect Sourcegraph to (instead of running the Jaeger instance inside the Sourcegraph cluster), do:
- Remove the
base/jaeger
directory:rm -rf base/jaeger
- Update the Jaeger agent containers to point to your Jaeger collector.
- Find all instances of Jaeger agent (
grep -R 'jaegertracing/jaeger-agent'
). - Update the
args
field of the Jaeger agent container configuration to point to the external collector. E.g.,args: - --reporter.grpc.host-port=external-jaeger-collector-host:14250 - --reporter.type=grpc
- Find all instances of Jaeger agent (
- Apply these changes to the cluster.
To disable Jaeger entirely, do:
- Update the Sourcegraph site
configuration to remove the
observability.tracing
field. - Remove the
base/jaeger
directory:rm -rf base/jaeger
- Remove the jaeger agent containers from each
*.Deployment.yaml
and*.StatefulSet.ayml
file. - Apply these changes to the cluster.
The Kubernetes distribution of Sourcegraph 3.15 changed the standard way that Jaeger is deployed inside the Sourcegraph cluster.
If you were previously using the Jaeger Operator, do:
- Delete the Jaeger instance:
kubectl delete jaeger jaeger
. - Delete the Jaeger Operator
- Merge the new version of this repository into your fork and apply the update. The new Jaeger components should be created automatically.
If you were previously connecting to an external Jaeger instance, do:
- Merge the new version of this repository into your fork. Resolve any conflicts in files that contain configuration for the Jaeger agent to ensure the agent still points to the external Jaeger collector.
- Remove the
base/jaeger
directory:rm -rf base/jaeger
- Apply these changes to the cluster.
If you were previously not using Jaeger and would like to continue not using Jaeger, follow the directions above to disable Jaeger entirely.