Git Product home page Git Product logo

fluent-bit-pubsub's Introduction

fluent-bit output plugin for google pubsub

license Go Report Card

This plugin is used to publish data to queue in google pubsub.

You could easily use it.

Build

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

Usage

configuration options for fluent-bit.conf

Key Description Default
Project google cloud project id NONE(required)
Topic google pubsub topic name NONE(required)
JwtPath jwt file path for accessible google cloud project NONE(required)
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

Example fluent-bit.conf

[Output]
    Name pubsub
    Match *
    Project your-project(custom)
    Topic your-topic-name(custom)
    Jwtpath your-jwtpath(custom)    

Example exec

$ fluent-bit -c [your config file] -e pubsub.so 

fluent-bit-pubsub's People

Forkers

rhems-japan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.