Documentation
¶
Index ¶
- Variables
- func ValidateTopicSuffixMethod(method string) error
- 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 Kafka ¶
type Kafka struct {
// Kafka brokers to send metrics to
Brokers []string
// Kafka topic
Topic string
// Kafka topic suffix option
TopicSuffix TopicSuffix `toml:"topic_suffix"`
// Routing Key Tag
RoutingTag string `toml:"routing_tag"`
// Compression Codec Tag
CompressionCodec int
// RequiredAcks Tag
RequiredAcks int
// MaxRetry Tag
MaxRetry int
// Legacy SSL config options
// TLS client certificate
Certificate string
// TLS client key
Key string
// TLS certificate authority
CA string
// Path to CA file
SSLCA string `toml:"ssl_ca"`
// Path to host cert file
SSLCert string `toml:"ssl_cert"`
// Path to cert key file
SSLKey string `toml:"ssl_key"`
// Skip SSL verification
InsecureSkipVerify bool
// 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.