Skip to content

Commit

Permalink
docs: enhance processor basic example in docs (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
blumamir committed Feb 15, 2024
1 parent 28c7135 commit 802f693
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/pipeline/processors/crd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ To view the configuration for each processor, it is recommended to visit the REA

Adding a processor to your Odigos pipeline can be done by creating a `processor` custom resource in your k8s cluster under odigos namespace, for example:

#### processor.yaml
### Basic Example

This basic example demonstrate how to add a resource attribute `deployment.environment` with value `production` to all spans in the cluster.

Create a file named `example-processor.yaml` with the following content:

```yaml
apiVersion: odigos.io/v1alpha1
Expand All @@ -24,7 +28,7 @@ spec:
type: resource
processorConfig:
attributes:
- key: environment
- key: deployment.environment
value: production
action: insert
signals:
Expand All @@ -35,10 +39,10 @@ spec:

and apply with kubectl:
```bash
kubectl apply -f processor.yaml
kubectl apply -f example-processor.yaml
```

### Processor Options
### Full Processor Options

The CRD above is a simple example on how to add a processor to your Odigos pipeline.

Expand Down

0 comments on commit 802f693

Please sign in to comment.