From cce160322e4221a9f8ba43d3aef62254bd77d349 Mon Sep 17 00:00:00 2001 From: Ami Blonder Date: Tue, 5 Feb 2019 21:04:51 +0200 Subject: [PATCH] Replace subscription with topic in the pubsub output plugin (#5378) --- plugins/outputs/cloud_pubsub/README.md | 10 +++++----- plugins/outputs/cloud_pubsub/pubsub.go | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/outputs/cloud_pubsub/README.md b/plugins/outputs/cloud_pubsub/README.md index 5c345de4b..873f3c9b3 100644 --- a/plugins/outputs/cloud_pubsub/README.md +++ b/plugins/outputs/cloud_pubsub/README.md @@ -7,16 +7,16 @@ as one of the supported [output data formats][]. ### Configuration This section contains the default TOML to configure the plugin. You can -generate it using `telegraf --usage pubsub`. +generate it using `telegraf --usage cloud_pubsub`. ```toml -[[inputs.pubsub]] +[[outputs.cloud_pubsub]] ## Required. Name of Google Cloud Platform (GCP) Project that owns - ## the given PubSub subscription. + ## the given PubSub topic. project = "my-project" - ## Required. Name of PubSub subscription to ingest metrics from. - subscription = "my-subscription" + ## Required. Name of PubSub topic to publish metrics to. + topic = "my-topic" ## Required. Data format to consume. ## Each data format has its own unique set of configuration options. diff --git a/plugins/outputs/cloud_pubsub/pubsub.go b/plugins/outputs/cloud_pubsub/pubsub.go index 0edaec617..ee1611d3f 100644 --- a/plugins/outputs/cloud_pubsub/pubsub.go +++ b/plugins/outputs/cloud_pubsub/pubsub.go @@ -16,11 +16,11 @@ import ( const sampleConfig = ` ## Required. Name of Google Cloud Platform (GCP) Project that owns - ## the given PubSub subscription. + ## the given PubSub topic. project = "my-project" - ## Required. Name of PubSub subscription to ingest metrics from. - subscription = "my-subscription" + ## Required. Name of PubSub topic to publish metrics to. + topic = "my-topic" ## Required. Data format to consume. ## Each data format has its own unique set of configuration options.