Skip to content

Commit

Permalink
[release/v1.3] docs: fixed kafka config example (#2370)
Browse files Browse the repository at this point in the history
Example shows `loki.source.kafka "local"` pointing to `loki.relabel.kafka.receiver`. This leads to no new label being added. Correct example should have the kafka source pointing directly to `loki.write.local.receiver`

(cherry picked from commit 672dfe7)

Co-authored-by: Jay Clifford <[email protected]>
  • Loading branch information
github-actions[bot] and Jayclifford345 authored Jan 9, 2025
1 parent 5819b0d commit 05e4cff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ loki.source.kafka "local" {
brokers = ["localhost:9092"]
topics = ["quickstart-events"]
labels = {component = "loki.source.kafka"}
forward_to = [loki.relabel.kafka.receiver]
forward_to = [loki.write.local.receiver]
use_incoming_timestamp = true
relabel_rules = loki.relabel.kafka.rules
}
Expand Down

0 comments on commit 05e4cff

Please sign in to comment.