Kafka output: set max_retry=3 & required_acks=-1 as defaults

closes #1113
This commit is contained in:
Cameron Sparr 2016-04-29 18:48:07 -06:00
parent 91460436cf
commit a30b1a394f
2 changed files with 5 additions and 1 deletions

View File

@ -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]

View File

@ -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,
}
})
}