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 a30b1a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ based on _prefix_ in addition to globs. This means that a filter like
- [#1110](https://github.com/influxdata/telegraf/pull/1110): Sanitize * to - in graphite serializer. Thanks @goodeggs!
- [#1118](https://github.com/influxdata/telegraf/pull/1118): Sanitize Counter names for `win_perf_counters` input.
- [#1125](https://github.com/influxdata/telegraf/pull/1125): Wrap all exec command runners with a timeout, so hung os processes don't halt Telegraf.
- [#1113](https://github.com/influxdata/telegraf/pull/1113): Set MaxRetry and RequiredAcks defaults in Kafka output.

## v0.12.1 [2016-04-14]

Expand Down
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 a30b1a3

Please sign in to comment.