Replace subscription with topic in the pubsub output plugin (#5378)
This commit is contained in:
parent
2f2ababbdb
commit
cce160322e
|
@ -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.
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue