Replace subscription with topic in the pubsub output plugin (#5378)

This commit is contained in:
Ami Blonder 2019-02-05 21:04:51 +02:00 committed by Daniel Nelson
parent 2f2ababbdb
commit cce160322e
2 changed files with 8 additions and 8 deletions

View File

@ -7,16 +7,16 @@ as one of the supported [output data formats][].
### Configuration ### Configuration
This section contains the default TOML to configure the plugin. You can 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 ```toml
[[inputs.pubsub]] [[outputs.cloud_pubsub]]
## Required. Name of Google Cloud Platform (GCP) Project that owns ## Required. Name of Google Cloud Platform (GCP) Project that owns
## the given PubSub subscription. ## the given PubSub topic.
project = "my-project" project = "my-project"
## Required. Name of PubSub subscription to ingest metrics from. ## Required. Name of PubSub topic to publish metrics to.
subscription = "my-subscription" topic = "my-topic"
## Required. Data format to consume. ## Required. Data format to consume.
## Each data format has its own unique set of configuration options. ## Each data format has its own unique set of configuration options.

View File

@ -16,11 +16,11 @@ import (
const sampleConfig = ` const sampleConfig = `
## Required. Name of Google Cloud Platform (GCP) Project that owns ## Required. Name of Google Cloud Platform (GCP) Project that owns
## the given PubSub subscription. ## the given PubSub topic.
project = "my-project" project = "my-project"
## Required. Name of PubSub subscription to ingest metrics from. ## Required. Name of PubSub topic to publish metrics to.
subscription = "my-subscription" topic = "my-topic"
## Required. Data format to consume. ## Required. Data format to consume.
## Each data format has its own unique set of configuration options. ## Each data format has its own unique set of configuration options.