Skip to content

Commit

Permalink
Remove examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ptodev committed Nov 14, 2023
1 parent c4c6e75 commit 4e708de
Showing 1 changed file with 0 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,51 +235,3 @@ information.
## Examples

### Basic usage

```river
otelcol.processor.resourcedetection "default" {
output {
logs = [otelcol.exporter.otlp.default.input]
}
}
```

### Sample 15% of the logs

```river
otelcol.processor.resourcedetection "default" {
sampling_percentage = 15
output {
logs = [otelcol.exporter.otlp.default.input]
}
}
```

### Sample logs according to their "logID" attribute

```river
otelcol.processor.resourcedetection "default" {
sampling_percentage = 15
attribute_source = "record"
from_attribute = "logID"
output {
logs = [otelcol.exporter.otlp.default.input]
}
}
```

### Sample logs according to a "priority" attribute

```river
otelcol.processor.resourcedetection "default" {
sampling_percentage = 15
sampling_priority = "priority"
output {
logs = [otelcol.exporter.otlp.default.input]
}
}
```

0 comments on commit 4e708de

Please sign in to comment.