Documentation
¶
Index ¶
- Variables
- func ValidateTopicSuffixMethod(method string) error
- type DebugLogger
- type Kafka
- func (k *Kafka) Close() error
- func (k *Kafka) Connect() error
- func (k *Kafka) Description() string
- func (k *Kafka) GetTopicName(metric telegraf.Metric) (telegraf.Metric, string)
- func (k *Kafka) SampleConfig() string
- func (k *Kafka) SetSerializer(serializer serializers.Serializer)
- func (k *Kafka) Write(metrics []telegraf.Metric) error
- type TopicSuffix
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidTopicSuffixMethods = []string{
"",
"measurement",
"tags",
}
Functions ¶
func ValidateTopicSuffixMethod ¶ added in v1.14.0
Types ¶
type DebugLogger ¶ added in v1.14.0
type DebugLogger struct {
}
DebugLogger logs messages from sarama at the debug level.
func (*DebugLogger) Print ¶ added in v1.14.0
func (*DebugLogger) Print(v ...interface{})
func (*DebugLogger) Printf ¶ added in v1.14.0
func (*DebugLogger) Printf(format string, v ...interface{})
func (*DebugLogger) Println ¶ added in v1.14.0
func (*DebugLogger) Println(v ...interface{})
type Kafka ¶
type Kafka struct {
Brokers []string `toml:"brokers"`
Topic string `toml:"topic"`
TopicTag string `toml:"topic_tag"`
ExcludeTopicTag bool `toml:"exclude_topic_tag"`
ClientID string `toml:"client_id"`
TopicSuffix TopicSuffix `toml:"topic_suffix"`
RoutingTag string `toml:"routing_tag"`
RoutingKey string `toml:"routing_key"`
CompressionCodec int `toml:"compression_codec"`
RequiredAcks int `toml:"required_acks"`
MaxRetry int `toml:"max_retry"`
MaxMessageBytes int `toml:"max_message_bytes"`
Version string `toml:"version"`
// Legacy TLS config options
// TLS client certificate
Certificate string
// TLS client key
Key string
// TLS certificate authority
CA string
EnableTLS *bool `toml:"enable_tls"`
tlsint.ClientConfig
SASLUsername string `toml:"sasl_username"`
SASLPassword string `toml:"sasl_password"`
SASLVersion *int `toml:"sasl_version"`
Log telegraf.Logger `toml:"-"`
// contains filtered or unexported fields
}
func (*Kafka) Description ¶
func (*Kafka) GetTopicName ¶ added in v1.14.0
func (*Kafka) SampleConfig ¶
func (*Kafka) SetSerializer ¶ added in v1.14.0
func (k *Kafka) SetSerializer(serializer serializers.Serializer)
type TopicSuffix ¶ added in v1.14.0
Click to show internal directories.
Click to hide internal directories.