Skip to content

Commit

Permalink
Update the example syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
clayton-cornell committed Sep 13, 2023
1 parent 2126955 commit d85fe52
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/sources/flow/reference/components/loki.source.kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,27 +147,27 @@ This example consumes Kafka events from the specified brokers and topics
then forwards them to a `loki.write` component using the Kafka timestamp.

```river
loki.relabel "kafka" {
rule {
source_labels = ["__meta_kafka_topic"]
target_label = "topic"
}
}
loki.source.kafka "local" {
brokers = ["localhost:9092"]
topics = ["quickstart-events"]
labels = {component = "loki.source.kafka"}
forward_to = [loki.write.local.receiver]
forward_to = [loki.relabel.kafka.receiver]
use_incoming_timestamp = true
relabel_rules = loki.relabel.kafka.rules
}
loki.relabel "kafka" {
forward_to = [loki.write.local.receiver]
rule {
source_labels = ["__meta_kafka_topic"]
target_label = "topic"
}
}
loki.write "local" {
endpoint {
url = "loki:3100/api/v1/push"
}
}
```

0 comments on commit d85fe52

Please sign in to comment.