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) 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 ¶
Types ¶
type DebugLogger ¶
type DebugLogger struct { }
DebugLogger logs messages from sarama at the debug level.
func (*DebugLogger) Print ¶
func (*DebugLogger) Print(v ...interface{})
func (*DebugLogger) Printf ¶
func (*DebugLogger) Printf(format string, v ...interface{})
func (*DebugLogger) Println ¶
func (*DebugLogger) Println(v ...interface{})
type Kafka ¶
type Kafka struct { Brokers []string Topic string ClientID string `toml:"client_id"` TopicSuffix TopicSuffix `toml:"topic_suffix"` RoutingTag string `toml:"routing_tag"` RoutingKey string `toml:"routing_key"` CompressionCodec int RequiredAcks int MaxRetry int 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 tlsint.ClientConfig // SASL Username SASLUsername string `toml:"sasl_username"` // SASL Password SASLPassword string `toml:"sasl_password"` // contains filtered or unexported fields }
func (*Kafka) Description ¶
func (*Kafka) SampleConfig ¶
func (*Kafka) SetSerializer ¶
func (k *Kafka) SetSerializer(serializer serializers.Serializer)
type TopicSuffix ¶
Click to show internal directories.
Click to hide internal directories.