feat: support elasticsearch notification endpoint compression codec (#18562)

This commit is contained in:
jiuker
2023-11-30 16:25:03 +08:00
committed by GitHub
parent 0ee722f8c3
commit 34187e047d
5 changed files with 114 additions and 47 deletions
+8
View File
@@ -95,6 +95,14 @@ func SetNotifyKafka(s config.Config, name string, cfg target.KafkaArgs) error {
Key: target.KafkaSASLPassword,
Value: cfg.SASL.Password,
},
config.KV{
Key: target.KafkaCompressionCodec,
Value: cfg.Producer.Compression,
},
config.KV{
Key: target.KafkaCompressionLevel,
Value: strconv.Itoa(cfg.Producer.CompressionLevel),
},
}
return nil
}