Skip to content

Commit

Permalink
Kafka output: set max_retry=3 & required_acks=-1 as defaults
Browse files Browse the repository at this point in the history
closes #1113
  • Loading branch information
sparrc committed Apr 30, 2016
1 parent 9146043 commit fda4083
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/outputs/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ func (k *Kafka) Write(metrics []telegraf.Metric) error {

func init() {
outputs.Add("kafka", func() telegraf.Output {
return &Kafka{}
return &Kafka{
MaxRetry: 3,
RequiredAcks: -1,
}
})
}

0 comments on commit fda4083

Please sign in to comment.