From 4c2ba748246fa22d1f92c0d5b1e66223b071d2f8 Mon Sep 17 00:00:00 2001 From: "Lee, YoungHoon" Date: Wed, 7 Feb 2024 05:39:09 +0900 Subject: [PATCH] fix(inputs.kafka_consumer): Correctly setting name to msg_headers_as_tags (#14679) --- plugins/inputs/kafka_consumer/README.md | 6 +++--- plugins/inputs/kafka_consumer/sample.conf | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/inputs/kafka_consumer/README.md b/plugins/inputs/kafka_consumer/README.md index 34aa8baa4..0e5a3cc52 100644 --- a/plugins/inputs/kafka_consumer/README.md +++ b/plugins/inputs/kafka_consumer/README.md @@ -66,11 +66,11 @@ to use them. ## The list of Kafka message headers that should be pass as metric tags ## works only for Kafka version 0.11+, on lower versions the message headers ## are not available - # msg_headers_to_tags = [] + # msg_headers_as_tags = [] ## The name of kafka message header which value should override the metric name. - ## In case when the same header specified in current option and in msg_headers_to_tags - ## option, it will be excluded from the msg_headers_to_tags list. + ## In case when the same header specified in current option and in msg_headers_as_tags + ## option, it will be excluded from the msg_headers_as_tags list. # msg_header_as_metric_name = "" ## Optional Client id diff --git a/plugins/inputs/kafka_consumer/sample.conf b/plugins/inputs/kafka_consumer/sample.conf index afefd722e..b57b4c2f9 100644 --- a/plugins/inputs/kafka_consumer/sample.conf +++ b/plugins/inputs/kafka_consumer/sample.conf @@ -26,11 +26,11 @@ ## The list of Kafka message headers that should be pass as metric tags ## works only for Kafka version 0.11+, on lower versions the message headers ## are not available - # msg_headers_to_tags = [] + # msg_headers_as_tags = [] ## The name of kafka message header which value should override the metric name. - ## In case when the same header specified in current option and in msg_headers_to_tags - ## option, it will be excluded from the msg_headers_to_tags list. + ## In case when the same header specified in current option and in msg_headers_as_tags + ## option, it will be excluded from the msg_headers_as_tags list. # msg_header_as_metric_name = "" ## Optional Client id