This plugin is used to publish data to queue in google pubsub.
You could easily use it.
A bin directory already has been made binaries for mac, linux.
If you should directly make binaries for mac, linux
# local machine binary
$ bash make.sh build
# Your machine is mac, and if you should do to retry cross compiling for linux.
# A command in below is required a docker.
$ bash make.sh build_linux
Key | Description | Default |
---|---|---|
Project | Google Cloud project ID | NONE(required) |
Topic | Google Cloud Pub/Sub topic name | NONE(required) |
Format | The type of message to be sent to pubsub. Currently, only json is supported. |
NONE(optional) |
Attributes | JSON string specifying message attributes | NONE(optional) |
Debug | Print debug log | false(optional) |
Timeout | The maximum time that the client will attempt to publish a bundle of messages. (millsecond) | 60000 (optional) |
DelayThreshold | Publish a non-empty batch after this delay has passed. (millsecond) | 1 |
ByteThreshold | Publish a batch when its size in bytes reaches this value. | 1000000 |
CountThreshold | Publish a batch when it has been reached count of messages. | 100 |
[Output]
Name pubsub
Match *
Project your-project(custom)
Topic your-topic-name(custom)
Format json
Attributes {"key1":"value1","key2":"value2"}
$ fluent-bit -c [your config file] -e pubsub.so