Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "async-kafka"
Variables ¶
View Source
var ( KafkaMsgSizeGaugeVec = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Namespace: "gravity", Subsystem: "output_async_kafka", Name: "binlog_msg_size", Help: "binlog msg size", }, []string{metrics.PipelineTag, "topic"}) )
Functions ¶
This section is empty.
Types ¶
type AsyncKafka ¶
func (*AsyncKafka) Close ¶
func (output *AsyncKafka) Close()
func (*AsyncKafka) Configure ¶
func (output *AsyncKafka) Configure(pipelineName string, data map[string]interface{}) error
func (*AsyncKafka) GetRouter ¶ added in v0.9.17
func (output *AsyncKafka) GetRouter() core.Router
type AsyncKafkaPluginConfig ¶
type AsyncKafkaPluginConfig struct { KafkaConfig *config.KafkaGlobalConfig `mapstructure:"kafka-global-config" json:"kafka-global-config"` Routes []map[string]interface{} `mapstructure:"routes" json:"routes"` OutputFormat string `mapstructure:"output-format" json:"output-format"` SchemaVersion string `mapstructure:"schema-version" json:"schema-version"` IgnoreLargeMsg int `mapstructure:"ignore-large-msg" json:"ignore-large-msg"` }
Click to show internal directories.
Click to hide internal directories.