diff --git a/etc/telegraf.conf b/etc/telegraf.conf index ce9732489fcaa..ec5469ae0e683 100644 --- a/etc/telegraf.conf +++ b/etc/telegraf.conf @@ -387,7 +387,7 @@ # # base64_data = false # # ## Optional. PubSub attributes to add to metrics. -# # [[inputs.pubsub.attributes]] +# # [outputs.cloud_pubsub.attributes] # # my_attr = "tag_value" diff --git a/plugins/outputs/cloud_pubsub/README.md b/plugins/outputs/cloud_pubsub/README.md index 3a4088b61b92e..d3d5e2fe30063 100644 --- a/plugins/outputs/cloud_pubsub/README.md +++ b/plugins/outputs/cloud_pubsub/README.md @@ -51,12 +51,12 @@ generate it using `telegraf --usage cloud_pubsub`. ## Optional. Specifies a timeout for requests to the PubSub API. # publish_timeout = "30s" - + ## Optional. If true, published PubSub message data will be base64-encoded. # base64_data = false - + ## Optional. PubSub attributes to add to metrics. - # [[inputs.pubsub.attributes]] + # [outputs.cloud_pubsub.attributes] # my_attr = "tag_value" ``` diff --git a/plugins/outputs/cloud_pubsub/pubsub.go b/plugins/outputs/cloud_pubsub/pubsub.go index 5abb04afbaa6a..826a75e1c1c68 100644 --- a/plugins/outputs/cloud_pubsub/pubsub.go +++ b/plugins/outputs/cloud_pubsub/pubsub.go @@ -62,7 +62,7 @@ const sampleConfig = ` # base64_data = false ## Optional. PubSub attributes to add to metrics. - # [[inputs.pubsub.attributes]] + # [outputs.cloud_pubsub.attributes] # my_attr = "tag_value" `