Basic config
pubsub_emulator_host
parameter is optional, which could be used when you need to test
the Google Cloud PubSub service locally through an emulator (see more details at the bottom).
Data format
The Google Cloud PubSub data exporter scalar valuesdata
field.
The following messages are valid:
- The project_id and topic_id has to be configured in the yaml file.
Set up Google Cloud Pubsub emulator
To test out Google Cloud PubSub source locally, follow the instructions in Testing apps locally with the emulator to set up the local Google Cloud PubSub emulator.Create a project_id
for testing
Use the command listed under the Starting the emulator
section to create a project_id
, e.g.,
Create a topic and a subscription
Use thegcloud pubsub topics create
command to create a topic:
gcloud pubsub subscriptions create
command to create a subscription.