项目作者: joker1007

项目描述 :
Fluentd formatter plugin to format by confluent schema registry format.
高级语言: Ruby
项目地址: git://github.com/joker1007/fluent-plugin-avro_turf.git
创建时间: 2019-08-24T11:21:46Z
项目社区:https://github.com/joker1007/fluent-plugin-avro_turf

开源协议:Apache License 2.0

下载


fluent-plugin-avro_turf

Fluentd formatter plugin to format by confluent schema registry format.

see. https://docs.confluent.io/current/schema-registry/serializer-formatter.html

The format is based on Apache Avro, but it is not compatible.

Representative use is formatter for https://github.com/fluent/fluent-plugin-kafka

Installation

RubyGems

  1. $ gem install fluent-plugin-avro_turf

Bundler

Add following line to your Gemfile:

  1. gem "fluent-plugin-avro_turf"

And then execute:

  1. $ bundle

Configuration

Example.

  1. <format>
  2. @type avro_turf_messaging
  3. schema_registry_url http://my-registry:8081/
  4. schemas_path ./schemas
  5. schema_name_key schema_name
  6. default_namespace io.github.joker1007
  7. exclude_schema_name_key true
  8. </format>
param type required default description
schema_registry_url string true Schema Registry URL parameter (ex: http://my-registry:8081/)
schemas_path string nil Schemas path to find avsc from local storage
default_schema_name string nil Default schema name when the record doesn’t have schema_name_key
schema_name_key string "schema_name" Field for schema name
schema hash nil Inline schema definition. If this parameter is set, default_schema_name and schema_name_key are ignored
subject string nil Set subject explicitly
subject_key string nil Field for subject
default_namespace string nil Default schema namespace
namespace_key string "namespace" Field for namespace
schema_version string "latest" Set schema version explicitly that is only effective when subject or subject_key is set
schema_version_key string "schema_version" Field for schema version
exclude_schema_name_key bool false Set true to remove schema_name_key field from data
exclude_namespace_key bool false Set true to remove namespace_key field from data
exclude_schema_version_key bool false Set true to remove schema_version_key field from data
exclude_subject_key bool false Set true to remove subject_key field from data
  • Copyright(c) 2019- joker1007
  • License
    • Apache License, Version 2.0