kafka

package
v0.37.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	UseSASLHandshake:        true,
	KafkaVersion:            sarama.V2_0_0_0.String(),
	MetadataRefreshInterval: "1m",
	AllowConcurrent:         true,
	MaxOffsets:              1000,
	PruneIntervalSeconds:    30,
	TopicsFilter:            ".*",
	GroupFilter:             ".*",
}

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Instance                string             `river:"instance,attr,optional"`
	KafkaURIs               []string           `river:"kafka_uris,attr,optional"`
	UseSASL                 bool               `river:"use_sasl,attr,optional"`
	UseSASLHandshake        bool               `river:"use_sasl_handshake,attr,optional"`
	SASLUsername            string             `river:"sasl_username,attr,optional"`
	SASLPassword            config_util.Secret `river:"sasl_password,attr,optional"`
	SASLMechanism           string             `river:"sasl_mechanism,attr,optional"`
	UseTLS                  bool               `river:"use_tls,attr,optional"`
	CAFile                  string             `river:"ca_file,attr,optional"`
	CertFile                string             `river:"cert_file,attr,optional"`
	KeyFile                 string             `river:"key_file,attr,optional"`
	InsecureSkipVerify      bool               `river:"insecure_skip_verify,attr,optional"`
	KafkaVersion            string             `river:"kafka_version,attr,optional"`
	UseZooKeeperLag         bool               `river:"use_zookeeper_lag,attr,optional"`
	ZookeeperURIs           []string           `river:"zookeeper_uris,attr,optional"`
	ClusterName             string             `river:"kafka_cluster_name,attr,optional"`
	MetadataRefreshInterval string             `river:"metadata_refresh_interval,attr,optional"`
	AllowConcurrent         bool               `river:"allow_concurrency,attr,optional"`
	MaxOffsets              int                `river:"max_offsets,attr,optional"`
	PruneIntervalSeconds    int                `river:"prune_interval_seconds,attr,optional"`
	TopicsFilter            string             `river:"topics_filter_regex,attr,optional"`
	GroupFilter             string             `river:"groups_filter_regex,attr,optional"`
}

func (*Arguments) Convert

func (a *Arguments) Convert() *kafka_exporter.Config

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate

func (a *Arguments) Validate() error

Validate implements river.Validator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL