Skip to content

Commit 75a26ec

Browse files
committed
Update instructions for adding batch processor #357
1 parent bb93362 commit 75a26ec

File tree

1 file changed

+8
-3
lines changed
  • content/en/ninja-workshops/3-opentelemetry-collector-workshops/2-advanced-collector/2-gateway

1 file changed

+8
-3
lines changed

content/en/ninja-workshops/3-opentelemetry-collector-workshops/2-advanced-collector/2-gateway/2-2-configure-agent.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,20 @@ weight: 2
1919
2020
**Add a Batch Processor configuration**: The [**Batch Processor**](https://github.com/open-telemetry/opentelemetry-collector/blob/main/processor/batchprocessor/README.md) will accept spans, metrics, or logs and place them into batches. Batching helps better compress the data and reduce the number of outgoing connections required to transmit the data. It is highly recommended configuring the batch processor on every collector.
2121
22+
1. Add the `batch` processor configuration to the `processors` section:
23+
2224
```yaml
2325
batch: # Processor Type
2426
```
2527

2628
**Update the pipelines**:
2729

28-
1. **Enable Hostmetrics Receiver**: Add `hostmetrics` to the `metrics` pipeline. The [**HostMetrics Receiver**](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/hostmetricsreceiver#readme) will generate host CPU metrics once per hour with the current configuration.
29-
2. **Enable Batch Processor**: Add the `batch` processor (after the `resource/add_mode` processor) to the `traces`, `metrics`, and `logs` pipelines.
30-
3. **Enable OTLPHTTP Exporter**: Add the `otlphttp` exporter to the `traces`, `metrics`, and `logs` pipelines.
30+
1. **Enable Hostmetrics Receiver**:
31+
- Add `hostmetrics` to the `metrics` pipeline. The [**HostMetrics Receiver**](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/hostmetricsreceiver#readme) will generate host CPU metrics once per hour with the current configuration.
32+
2. **Enable Batch Processor**:
33+
- Add the `batch` processor (after the `resource/add_mode` processor) to the `traces`, `metrics`, and `logs` pipelines.
34+
3. **Enable OTLPHTTP Exporter**:
35+
- Add the `otlphttp` exporter to the `traces`, `metrics`, and `logs` pipelines.
3136

3237
```yaml
3338
pipelines:

0 commit comments

Comments
 (0)