With Odigos UI
The easiest way to add a source to Odigos is to use the Odigos UI.After installing Odigos CLI, run the following command to start the Odigos UI:
Future Apps toggle in the UI.
Otherwise, you can enable the Select All toggle to include all the workloads in the namespace as sources, excluding future-new workloads.
With Odigos CLI
See the CLI documentation on Sources for detailed command documentation for manipulating Sources.Kubernetes Manifests
If you prefer to use kubectl or GitOps to manage your Kubernetes workloads, you can add a source to Odigos by creating a Source object.Only one Source object may exist for a given workload, except in namespace instrumentation.
Workload Source
The following Source object enables instrumentation for a Deployment namedfrontend in the default namespace and belong to Datastream example.
Note: Sources that do not have a Datastream label will be automatically attached to the default Datastream.
Namespace Source
The following Source object enables instrumentation for all the workloads in thedefault namespace:
spec.workload.name == spec.workload.namespacespec.workload.kind: Namespace
Disable Workload Source in Namespace
You can have a namespace Source and a workload Source that both enable instrumentation for a workload. In this case, if one is deleted, the other will persist instrumentation for the workload. To exclude specific workloads from namespace instrumentation, setdisableInstrumentation: true on the workload Source. For example:
default namespace will be instrumented except for the frontend Deployment. If example-source is deleted (or disableInstrumentation is set to false), the frontend Deployment will be instrumented.