Clean pubsub sample config
This commit is contained in:
parent
2857f07af9
commit
8e46414da2
|
@ -1,16 +1,17 @@
|
||||||
package cloud_pubsub
|
package cloud_pubsub
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"cloud.google.com/go/pubsub"
|
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"sync"
|
||||||
|
|
||||||
|
"cloud.google.com/go/pubsub"
|
||||||
"github.com/influxdata/telegraf"
|
"github.com/influxdata/telegraf"
|
||||||
"github.com/influxdata/telegraf/internal"
|
"github.com/influxdata/telegraf/internal"
|
||||||
"github.com/influxdata/telegraf/plugins/inputs"
|
"github.com/influxdata/telegraf/plugins/inputs"
|
||||||
"github.com/influxdata/telegraf/plugins/parsers"
|
"github.com/influxdata/telegraf/plugins/parsers"
|
||||||
"golang.org/x/oauth2/google"
|
"golang.org/x/oauth2/google"
|
||||||
"google.golang.org/api/option"
|
"google.golang.org/api/option"
|
||||||
"sync"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type empty struct{}
|
type empty struct{}
|
||||||
|
|
|
@ -15,7 +15,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const sampleConfig = `
|
const sampleConfig = `
|
||||||
[[inputs.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 subscription.
|
||||||
project = "my-project"
|
project = "my-project"
|
||||||
|
|
Loading…
Reference in New Issue