Skip to content

Commit

Permalink
fixed step 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayclifford345 committed Jul 22, 2024
1 parent 5115399 commit 51d543c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions loki/alloy-kafka-logs/step3.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Next we will configure Alloy to also ingest OpenTelemetry logs via Kafka, we need to update the Alloy configuration file once again. We will add the new components to the `config.alloy`{{copy}} file along with the existing components.

## Open your Code Editor and Locate the `config.alloy`{{copy}} file

Like before, we generate our next pipeline configuration within the same `config.alloy`{{copy}} file. The below configuration snippets will be added **in addition** to the existing configuration. Essentially, we are configuring two pipelines within the same Alloy configuration file.

## Source OpenTelemetry logs from Kafka

First, we will configure the OpenTelemetry Kafaka receiver. `otelcol.receiver.kafka`{{copy}} accepts telemetry data from a Kafka broker and forwards it to other `otelcol.*`{{copy}} components.
Expand Down Expand Up @@ -35,10 +39,6 @@ In this configuration:
For more information on the `otelcol.receiver.kafka`{{copy}} configuration, see the [OpenTelemetry Receiver Kafka documentation](https://grafana.com/docs/alloy/latest/reference/components/otelcol.receiver.kafka/).
## Open your Code Editor and Locate the `config.alloy`{{copy}} file
Like before, we generate our next pipeline configuration within the same `config.alloy`{{copy}} file. The below configuration snippets will be added **in addition** to the existing configuration. Essentially, we are configuring two pipelines within the same Alloy configuration file.
## Batch OpenTelemetry logs before sending
Next, we will configure a OpenTelemetry processor. `otelcol.processor.batch`{{copy}} accepts telemetry data from other otelcol components and places them into batches. Batching improves the compression of data and reduces the number of outgoing network requests required to transmit data. This processor supports both size and time based batching.
Expand Down

0 comments on commit 51d543c

Please sign in to comment.