Set default config values in jenkins input (#5046)

This commit is contained in:
Jeppe Fihl-Pearson 2018-11-28 01:26:22 +00:00 committed by Daniel Nelson
parent 581772a6a5
commit 6d2fb0027c
1 changed files with 5 additions and 1 deletions

View File

@ -438,6 +438,10 @@ func mapResultCode(s string) int {
func init() {
inputs.Add("jenkins", func() telegraf.Input {
return &Jenkins{}
return &Jenkins{
MaxBuildAge: internal.Duration{Duration: time.Duration(time.Hour)},
MaxConnections: 5,
MaxSubJobPerLayer: 10,
}
})
}